From 0d47c86104d6742ff026cd57731c071e77f8f0d0 Mon Sep 17 00:00:00 2001 From: Dillon Ngo Date: Thu, 25 Sep 2025 12:08:30 +0800 Subject: [PATCH] E-Invoice - Update to Sales Invoice Report template ref column --- .../GenerateCreditNotePdfV2Logic.php | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/app/Classes/Modules/Transactions/ControllersLogic/GenerateCreditNotePdfV2Logic.php b/app/Classes/Modules/Transactions/ControllersLogic/GenerateCreditNotePdfV2Logic.php index 67dd0647..b65985b0 100644 --- a/app/Classes/Modules/Transactions/ControllersLogic/GenerateCreditNotePdfV2Logic.php +++ b/app/Classes/Modules/Transactions/ControllersLogic/GenerateCreditNotePdfV2Logic.php @@ -94,19 +94,6 @@ class GenerateCreditNotePdfV2Logic if($eInvoiceStarted) { $eInvoiceStarted = false; //reset to re-evaluate second time - //cief todo: 90 - Credit Note autocount id from autocount need new key - // $metadata = $booking->attributesKVP()->where('key', KVPKey::AUTOCOUNT_DOCNO_INVOICE)->first(); - // if($metadata){ - // if($metadata){ - // $autoCountInvoiceId = $metadata->value; - // } - // $metadata = $booking->attributesKVP()->where('key', KVPKey::AUTOCOUNT_EINVOICE_VALIDATION_LINK)->first(); - // if($metadata){ - // $autoCountEInvoiceValidationLink = $metadata->value; - // } - // } - // else{ - // } $kvp = KeyValuePair::where('key', KVPKey::TRANSACTION_MODEL_CLASS)->where('value', $transaction->id)->first(); $refundTransaction = $kvp ? $kvp->owner : null; if($refundTransaction && $refundTransaction->type === TransactionType::REFUND){