得意先別売掛残高順位表

{{ date('Y-m', strtotime($viewdata['formdata']['date_to'])) }} 月度 出力日:{{ date('Y-m-d') }} {{ $pagenum }} / {{ $pagetotal }} 頁
@php $subtotal = []; $subtotal['件数'] = 0; $subtotal['指定月請求額'] = 0; $subtotal['指定月売掛金合計'] = 0; $subtotal['指定月入金合計'] = 0; $subtotal['今期請求額累計'] = 0; $subtotal['今期消費税額累計'] = 0; $subtotal['売掛残高'] = 0; @endphp @foreach($pagedata as $customer) @php $subtotal['件数']++; $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(floor($customer['今期請求額累計'] * 1.1)) }} {{ $customer['順位'] }}
☆合計 {{ $total['件数'] }} 件 {{ number_format($total['指定月請求額']) }} {{ number_format($total['売掛残高']) }} {{ number_format($total['年間売上額']) }}