Detail MOH Report
Period : {{ $period }}
Filter : {{ $groupname }} ({{ $group }}), {{ $groupname2 }} ({{ $group2 }})
@foreach($columnList as $column) @endforeach @php $total_qty = 0; $total_value = 0; $total_onhand1 = 0; $total_onhand2 = 0; @endphp @foreach($datadetail2 as $item) @foreach($columnList as $column) @php $field = $column; @endphp @endforeach @php $total_qty += $item['qty']; $total_value += $item['value']; $total_onhand1 += $item['onhand1']; $total_onhand2 += $item['onhand2']; @endphp @endforeach
{{ __('ItemCode') }} {{ __('CodeBars') }} {{ __('ItemName') }} {{ __('AvgPrice') }} {{ __('SellPrice') }} {{ __('Stock') }} {{ __('QtySales') }} {{ __('ValSales') }} {{ __('MOH') }} {{ __('Stock Central') }} {{ __('MOH Central') }}{{ substr($column, 2) }}
{{ $item['code'] }} {{ $item['barcode'] }} {{ $item['name'] }} {{ $item['avgprice'] }} {{ $item['sellprice'] }} {{ $item['onhand1'] }} {{ $item['qty'] }} {{ $item['value'] }} {{ $item['moh1'] }} {{ $item['onhand2'] }} {{ $item['moh2'] }}{{ $item[$field] ?? '' }}
Total {{ $total_onhand1 }} {{ $total_qty }} {{ $total_value }} {{ $total_onhand2 }}