From 4c92ac5a83dae5740c5f807a0f35cb5d4a9a2ffd Mon Sep 17 00:00:00 2001 From: Dillon Ngo Date: Fri, 6 Feb 2026 14:30:07 +0800 Subject: [PATCH 1/2] Fix an issue reported by Eileen not able to generate summary invoice for multiple pending payment shipping invoices --- .../pdfs/shipping_invoices_sst_combined_v2.blade.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/resources/views/pages/pdfs/shipping_invoices_sst_combined_v2.blade.php b/resources/views/pages/pdfs/shipping_invoices_sst_combined_v2.blade.php index 376baddc..33d6d889 100644 --- a/resources/views/pages/pdfs/shipping_invoices_sst_combined_v2.blade.php +++ b/resources/views/pages/pdfs/shipping_invoices_sst_combined_v2.blade.php @@ -199,6 +199,12 @@ $isEInvoiceIssued = $transaction->attributesKVP()->where('key', \App\Classes\ValueObjects\Constants\KVPKey::EINVOICE_ISSUED)->first(); + $autoCountEInvoiceValidationLink = 'CIEF'; + $metadata = $transaction->attributesKVP()->where('key', KVPKey::AUTOCOUNT_EINVOICE_VALIDATION_LINK)->first(); + if($metadata){ + $autoCountEInvoiceValidationLink = $metadata->value; + } + @endphp {{-- 00 With EInvoice: Summary page --> Sales Order--> Normal Invoice (if any) --> E-invoice --> Packing List --}} {{-- 00 Without EInvoice: Summary page --> Normal Invoice --> Packing List--}} @@ -265,7 +271,8 @@ 'brn' => $brn, 'document_date' => $documentDate, 'document_identifier' => $documentIdentifier, - 'document_identifier_prefix' => $documentIdentifierPrefix + 'document_identifier_prefix' => $documentIdentifierPrefix, + 'autocountEInvoiceValidationLink' => $autoCountEInvoiceValidationLink ]) @endif From d99cb103ce1bba0076fa98f5a6bd474998db0ebb Mon Sep 17 00:00:00 2001 From: Dillon Ngo Date: Fri, 6 Feb 2026 14:32:44 +0800 Subject: [PATCH 2/2] Fix an issue reported by Eileen not able to generate summary invoice for multiple pending payment shipping invoices --- .../pages/pdfs/shipping_invoices_sst_combined_v2.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/pages/pdfs/shipping_invoices_sst_combined_v2.blade.php b/resources/views/pages/pdfs/shipping_invoices_sst_combined_v2.blade.php index 33d6d889..83c1b65b 100644 --- a/resources/views/pages/pdfs/shipping_invoices_sst_combined_v2.blade.php +++ b/resources/views/pages/pdfs/shipping_invoices_sst_combined_v2.blade.php @@ -200,7 +200,7 @@ $isEInvoiceIssued = $transaction->attributesKVP()->where('key', \App\Classes\ValueObjects\Constants\KVPKey::EINVOICE_ISSUED)->first(); $autoCountEInvoiceValidationLink = 'CIEF'; - $metadata = $transaction->attributesKVP()->where('key', KVPKey::AUTOCOUNT_EINVOICE_VALIDATION_LINK)->first(); + $metadata = $transaction->attributesKVP()->where('key', \App\Classes\ValueObjects\Constants\KVPKey::AUTOCOUNT_EINVOICE_VALIDATION_LINK)->first(); if($metadata){ $autoCountEInvoiceValidationLink = $metadata->value; }