@extends('print.template.checklist') @section('title', '売上チェックリスト') @section('header')
【種別】 {{ $item_type?->value }}
【倉庫】{{ $warehouse->name }}
【大分類】 {{ $item_category_1?->code . ' ' . $item_category_1?->name }}
≪月次在庫受払表≫
作成 {{ $created_at }} {PAGENO}頁
@endsection @section('table-header')
 
 
 
荷姿
 
 
 
 
 
 
 
 
粗利益率
回転率
品番
中分類
銘柄
倉区
前回繰越
仕入れ
返品
移動倉入
売上
戻入
移動倉出
今回繰越
粗利益額
回転日数
@endsection @section('table-details') @foreach($entities as $entity) @php $sales_quantity = $entity->sold_quantity - $entity->returned_sale_quantity + $entity->transferred_from_quantity; $sales = $sales_quantity * $entity->price; $costs = $entity->previous_quantity * $entity->price + $entity->purchased_quantity * $entity->price - $entity->returned_purchase_quantity * $entity->price + $entity->transferred_to_quantity * $entity->price - $entity->quantity * $entity->price; $profit = $sales - $costs; $profit_rate = $costs > 0 ? ($sales * 100) / $costs : 0; $rotation_days = $sales_quantity > 0 ? ($entity->quantity + $entity->previous_quantity) * 30 / $sales_quantity * 2 : 0; $fraction_coefficient = ($entity->previous_quantity + $entity->quantity) * $no_of_months; $rotation_rate = $fraction_coefficient > 0 ? ($entity->sold_quantity - $entity->returned_sale_quantity) * 2 / $fraction_coefficient : 0; @endphp
{{$entity->item_code}}
{{$entity->item_category_name}}
{{$entity->manufacturer_name}}
{{$entity->monthly_stock_id}}
{{$entity->first_previous_quantity ?? 0}}
{{$entity->purchased_quantity ?? 0}}
{{$entity->returned_purchase_quantity ?? 0}}
{{$entity->transferred_to_quantity ?? 0}}
{{$entity->sold_quantity ?? 0}}
{{$entity->returned_sale_quantity ?? 0}}
{{$entity->transferred_from_quantity ?? 0}}
{{$entity->last_quantity ?? 0}}
{{$profit_rate}}
{{$rotation_rate}}
{{$entity->item_name}}
 
{{$entity->stock_allocation_name ?? ''}}
{{$entity->first_previous_amount ?? 0}}
{{$entity->purchased_quantity * $entity->price ?? 0}}
{{$entity->returned_purchase_quantity * $entity->price ?? 0}}
{{$entity->transferred_to_quantity * $entity->price ?? 0}}
{{$entity->sold_quantity * $entity->price ?? 0}}
{{$entity->returned_sale_quantity * $entity->price ?? 0}}
{{$entity->transferred_from_quantity * $entity->price ?? 0}}
{{$entity->last_amount ?? 0}}
{{$profit}}
{{$rotation_days}}
@endforeach @endsection