From 37976c8cf1f5369bd77b919c748edc48d3148c1a Mon Sep 17 00:00:00 2001 From: DevSoftTech Server Date: Fri, 3 Apr 2026 15:42:46 +0530 Subject: [PATCH] Charges invoice print: show payment details (Cash/Bank receipts, IPD/Org credit) on portrait mode --- app/Views/billing/charges/invoice_pdf_template.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/app/Views/billing/charges/invoice_pdf_template.php b/app/Views/billing/charges/invoice_pdf_template.php index 06ecb4d..8935c0b 100644 --- a/app/Views/billing/charges/invoice_pdf_template.php +++ b/app/Views/billing/charges/invoice_pdf_template.php @@ -60,6 +60,7 @@ $qrPackageAvailable = class_exists('\\Mpdf\\QrCode\\QrCode'); $paidAmountPrint = (float) ($invoice->payment_part_received ?? 0); $balanceAmountPrint = (float) ($invoice->payment_part_balance ?? ($netAmount - $paidAmountPrint)); +$paymentHistory = $payment_history_details ?? []; /** * Convert numbers to words (basic implementation for Indian system) @@ -262,6 +263,19 @@ if (!function_exists('convertNumberToWords')) { $amountInWords = convertNumberToWords((int)$netAmount); echo esc($amountInWords) . ' Only'; ?> + payment_mode ?? 0); + if ($pmodeInner === 3) : ?> +
Payment Details: Credit to IPD
+ +
Payment Details: Credit to Organisation
+ +
Payment Receipts: + + Payment_type_str ?? '')) ?> — amount ?? 0), 2)) ?>  + +
+