Add Amount Paid and Amount Due to Invoice PDF (#248)

* Display payment status on invoices

* Update en.json
This commit is contained in:
mchev
2025-01-12 11:36:36 +01:00
committed by GitHub
parent ef9adbd6c9
commit 3f560a1de2
2 changed files with 22 additions and 0 deletions

View File

@@ -160,5 +160,25 @@
{!! format_money_pdf($invoice->total, $invoice->customer->currency)!!}
</td>
</tr>
@if($invoice->paid_status === App\Models\Invoice::STATUS_PARTIALLY_PAID || $invoice->paid_status === App\Models\Invoice::STATUS_PAID)
<tr>
<td class="border-0 total-border-left total-table-attribute-label">
@lang('pdf_amount_paid')
</td>
<td class="py-8 border-0 total-border-right item-cell total-table-attribute-value">
{!! format_money_pdf($invoice->total - $invoice->due_amount, $invoice->customer->currency)!!}
</td>
</tr>
<tr>
<td class="border-0 total-border-left total-table-attribute-label">
@lang('pdf_amount_due')
</td>
<td class="py-8 border-0 total-border-right item-cell total-table-attribute-value" style="color: #5851D8">
{!! format_money_pdf($invoice->due_amount, $invoice->customer->currency)!!}
</td>
</tr>
@endif
</table>
</div>