得意先別売上管理表

{{ date('Y-m', strtotime($viewdata['formdata']['date_to'])) }} 月度 出力日:{{ date('Y-m-d') }} {{ $pagenum }} / {{ $pagetotal }} 頁
@php $subtotal = []; $subtotal['件数'] = 0; $subtotal['得意先NO'] = 0; $subtotal['得意先名'] = 0; $subtotal['前月繰越額'] = 0; $subtotal['現金・振込'] = 0; $subtotal['手形入金'] = 0; $subtotal['相殺その他'] = 0; $subtotal['入金合計'] = 0; $subtotal['入金値引'] = 0; $subtotal['差引繰越'] = 0; $subtotal['当月売上'] = 0; $subtotal['消費税'] = 0; $subtotal['当月繰越'] = 0; @endphp @foreach($pagedata as $customer) @php $subtotal['件数'] += 1; $subtotal['前月繰越額'] += $customer['前月繰越額']; $subtotal['現金・振込'] += $customer['現金・振込']; $subtotal['手形入金'] += $customer['手形入金']; $subtotal['相殺その他'] += $customer['相殺その他']; $subtotal['入金合計'] += $customer['入金合計']; $subtotal['入金値引'] += $customer['入金値引']; $subtotal['差引繰越'] += $customer['差引繰越']; $subtotal['当月売上'] += $customer['当月売上']; $subtotal['消費税'] += $customer['消費税']; $subtotal['当月繰越'] += $customer['当月繰越']; @endphp @endforeach @if (!empty($total)) @endif
得意先 前月繰越額 現金・振込 手形入金 相殺その他 入金合計 入金値引 差引繰越 当月売上 消費税 当月繰越
{{ $customer['得意先NO'] }} {{ $customer['得意先名'] }} {{ number_format($customer['前月繰越額']) }} {{ number_format($customer['現金・振込']) }} {{ number_format($customer['手形入金']) }} {{ number_format($customer['相殺その他']) }} {{ number_format($customer['入金合計']) }} {{ number_format($customer['入金値引']) }} {{ number_format($customer['差引繰越']) }} {{ number_format($customer['当月売上']) }} {{ number_format($customer['消費税']) }} {{ number_format($customer['当月繰越']) }}
☆合計 {{ $total['件数'] }} 件 {{ number_format($total['前月繰越額']) }} {{ number_format($total['現金・振込']) }} {{ number_format($total['手形入金']) }} {{ number_format($total['相殺その他']) }} {{ number_format($total['入金合計']) }} {{ number_format($total['入金値引']) }} {{ number_format($total['差引繰越']) }} {{ number_format($total['当月売上']) }} {{ number_format($total['消費税']) }} {{ number_format($total['当月繰越']) }}