E-Invoice - Automapping Issues, Credit Note Report (Import) Partial Completion

This commit is contained in:
Dillon Ngo
2025-08-26 15:24:34 +08:00
parent c59cec3f40
commit 25db0a42a2
3 changed files with 32 additions and 16 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ class TransactionResource extends JsonResource
$eInvoice = false;
if($booking && $this->type === TransactionType::REFUND){
$kvp = $booking->attributesKVP()->where('key', KVPKey::AUTOCOUNT_DOCNO_CREDIT_NOTE)->first();
$kvp = $this->attributesKVP()->where('key', KVPKey::AUTOCOUNT_DOCNO_CREDIT_NOTE)->first();
if($kvp){
$eInvoice = true;
}