E-Invoice - special handling of cases for those booking done before 1st July 2025 that need to generate E-Invoice

This commit is contained in:
Dillon Ngo
2025-08-22 21:33:20 +08:00
parent fc410a24aa
commit e159d0d769
7 changed files with 12 additions and 12 deletions
@@ -94,7 +94,7 @@ class GenerateCreditNotePdfV2Logic
$autoCountInvoiceId = '';
$autoCountEInvoiceValidationLink = '';
$metadata = $booking->attributesKVP()->where('key', KVPKey::AUTOCOUNT_DOCNO)->first();
$metadata = $booking->attributesKVP()->where('key', KVPKey::AUTOCOUNT_DOCNO_INVOICE)->first();
if($metadata){
$autoCountInvoiceId = $metadata->value;
}