@extends('print.template.checklist') @section('title', '棚卸差異リスト') @section('header')
棚卸差異リスト
棚卸日:{{$entities[0]->inventory_date}}
倉庫コード:{{$entities[0]->warehouse->code}} {{$entities[0]->warehouse->name}}
作成 {{ $created_at }} {PAGENO}頁
@endsection @section('table-header')
<理論在庫>
<実在庫数>
<差異在庫数>
<仕入単価>
<差異金額>
フロア
ロケーション
品番
商品名
規格
在庫区分
ケース
バラ
ケース
バラ
ケース
バラ
ケース
バラ
ケース
バラ
@endsection @section('table-details') @foreach($entities as $entity)
@foreach($entity->inventory_items as $index => $item) {{-- @if ($item->is_diff) --}}
{{ $item->floor?->name }}
{{ $item->location->code1 }}-{{ $item->location->code2 }}-{{ $item->location->code3 }}
{{ $item->item->code }}
{{ $item->item->name }}
{{ $item->item->packaging }}
{{ $item->stock_allocation->name }}
{{ $item->system_case_quantity }}
{{ $item->system_unit_quantity }}
{{ $item->real_case_quantity }}
{{ $item->real_unit_quantity }}
{{ $item->diffQuantity('case') }}
{{ $item->diffQuantity('unit') }}
{{ number_format($item->purchase_case_price, 0) }}
{{ number_format($item->purchase_unit_price, 0) }}
{{ number_format($item->diffPrice('case'), 0) }}
{{ number_format($item->diffPrice('unit'), 0) }}
{{-- @endif --}} @endforeach
プラス計
{{$entity->diffPlusTotalCasePrice()}}
{{$entity->diffPlusTotalUnitPrice()}}
マイナス計
{{$entity->diffMinusTotalCasePrice()}}
{{$entity->diffMinusTotalUnitPrice()}}
総合計
{{$entity->diffTotalPrice()}}
@endforeach @endsection