fix the invoice date for IZYIM when export invoice to autocount

This commit is contained in:
Steve Ng
2024-01-09 09:08:44 +08:00
parent 79bc1dff91
commit e5dc9c4e1b
@@ -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,