mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
E-Invoice - Update to Sales Invoice Report template ref column
This commit is contained in:
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user