E-Invoice - Update to Sales Invoice Report template ref column

This commit is contained in:
Dillon Ngo
2025-09-25 12:08:30 +08:00
parent a6c1d768f8
commit 0d47c86104
@@ -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){