From 1e168729335842085df9516e20ee0f47c5264f72 Mon Sep 17 00:00:00 2001 From: Steve Ng Date: Tue, 9 Jan 2024 09:08:44 +0800 Subject: [PATCH] fix the invoice date for IZYIM when export invoice to autocount --- .../Modules/Exports/Services/ExportsInvoiceTransactions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Classes/Modules/Exports/Services/ExportsInvoiceTransactions.php b/app/Classes/Modules/Exports/Services/ExportsInvoiceTransactions.php index 62a2c13e..836efd34 100644 --- a/app/Classes/Modules/Exports/Services/ExportsInvoiceTransactions.php +++ b/app/Classes/Modules/Exports/Services/ExportsInvoiceTransactions.php @@ -114,7 +114,7 @@ class ExportsInvoiceTransactions implements FromQuery, WithHeadings, WithHeading 'with_company' => true, ]); - if (!empty($row) && $row[0]['status'] != 'success') { + if (!empty($row) && $row[0]['status'] == 'success') { $textToAppend = Carbon::now()->format('[Y-m-d H:i:s]') . ' Fetch Shipping Transaction Fail ' . json_encode([ 'id' => $statementTransactionOwner->owner_id, 'with_company' => true,