A/P Payment List

Report Printed on: {{date('l, F d, Y')}}
@if($payments) @foreach($payments as $company => $payments) @php $total_debt_company = 0; $total_paid_company = 0; @endphp @foreach($payments as $group_invoice => $payment) @php $total_debt_invoice = 0; $total_paid_invoice = 0; @endphp @foreach($payment as $item_payment) @endforeach @endforeach @endforeach @else @endif
A/P Date Doc. Number Payment ID Balance Paid Amount Left Balance Pay-Date Payment Method Comment
@if($company) {{ $company }} @else Empty Recipient @endif
{{ date('d-m-Y', strtotime($item_payment->accountPayable->invoice_date)) }} {{ $item_payment->accountPayable->document_no }} {{ $item_payment->id }} {{ ribuanWithComma($item_payment->accountPayable->nett_balance - $total_paid_invoice) }} {{ ribuanWithComma($item_payment->payment_amount) }} @php $total_paid_invoice += $item_payment->payment_amount; $total_paid_company += $item_payment->payment_amount; @endphp {{ ribuanWithComma($item_payment->accountPayable->nett_balance - $total_paid_invoice) }} {{ date('d-m-Y', strtotime($item_payment->transaction_date)) }} {{ $item_payment->pembayaranAp->nama_metode }} {{ $item_payment->payment_comment }}
Sub Total {{ ribuanWithComma($total_paid_invoice) }} @php $total_debt_company += ($item_payment->accountPayable->nett_balance - $total_paid_invoice); @endphp {{ ribuanWithComma($item_payment->accountPayable->nett_balance - $total_paid_invoice) }}
Total {{ ribuanWithComma($total_paid_company) }} {{ ribuanWithComma($total_debt_company) }}
NO DATA