From cbb2f3186a9d25d0b2c03d12c0ba7cc334259eb1 Mon Sep 17 00:00:00 2001 From: Dillon Ngo Date: Sun, 14 Sep 2025 15:26:06 +0800 Subject: [PATCH] E-Invoice - Look into another timed out problem, error 504 --- .../Modules/Exports/Services/ExportsSalesInvoiceReport.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Classes/Modules/Exports/Services/ExportsSalesInvoiceReport.php b/app/Classes/Modules/Exports/Services/ExportsSalesInvoiceReport.php index 289f86f2..e3a7cdc1 100644 --- a/app/Classes/Modules/Exports/Services/ExportsSalesInvoiceReport.php +++ b/app/Classes/Modules/Exports/Services/ExportsSalesInvoiceReport.php @@ -173,7 +173,7 @@ class ExportsSalesInvoiceReport implements FromQuery, WithHeadings, WithHeadingR $detail->quantity, $displayUnitPrice ? number_format($displayUnitPrice, 2): 0, $firstItem ? 'T' : '', - $company->e_invoice ? 'F' : 'T' + $firstItem ? ($company->e_invoice ? 'F' : 'T') : '', ]; if($firstItem) { @@ -210,7 +210,7 @@ class ExportsSalesInvoiceReport implements FromQuery, WithHeadings, WithHeadingR '1', $serviceCharge ? number_format($serviceCharge, 2): '0', '', - $company->e_invoice ? 'F' : 'T' + '', ]; // Service Charge - Ends @@ -256,7 +256,7 @@ class ExportsSalesInvoiceReport implements FromQuery, WithHeadings, WithHeadingR '1', $adjustment ? number_format($adjustment, 2): '0', '', - $company->e_invoice ? 'F' : 'T' + '', ]; // Adjustment - Ends