From 97861e29c8b6cae38e9ba8676d30424c02b3c538 Mon Sep 17 00:00:00 2001 From: Dillon Ngo Date: Sun, 14 Sep 2025 14:33:10 +0800 Subject: [PATCH] E-Invoice - Look into another timed out problem, error 504 --- .../Modules/Exports/Services/ExportsSalesInvoiceReport.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Classes/Modules/Exports/Services/ExportsSalesInvoiceReport.php b/app/Classes/Modules/Exports/Services/ExportsSalesInvoiceReport.php index 0be6f1d3..289f86f2 100644 --- a/app/Classes/Modules/Exports/Services/ExportsSalesInvoiceReport.php +++ b/app/Classes/Modules/Exports/Services/ExportsSalesInvoiceReport.php @@ -14,6 +14,7 @@ use Maatwebsite\Excel\Concerns\WithMapping; use App\Classes\Modules\Bookings\Services\CalculatesBookingRefundAmount; use App\Classes\Modules\Bookings\Services\CalculatesBookingRefundServiceCharge; use Carbon\Carbon; +use Illuminate\Support\Facades\Log; class ExportsSalesInvoiceReport implements FromQuery, WithHeadings, WithHeadingRow, WithMapping, ShouldAutoSize { @@ -88,7 +89,7 @@ class ExportsSalesInvoiceReport implements FromQuery, WithHeadings, WithHeadingR $currencyId = 0; $purchaseOrder = $booking->transactions->where('type', TransactionType::PURCHASE_ORDER)->first(); - $company = $booking->company->first(); + $company = $booking->company; $lastPaymentTransaction = $booking->transactions