From c5ceeba0d036a9f07faf374f8b452f8a3205207b Mon Sep 17 00:00:00 2001 From: Dillon Ngo Date: Thu, 27 Nov 2025 11:16:27 +0800 Subject: [PATCH] E-Invoice - Update the conditions for generating Sales Invoice Report --- .../Modules/Exports/Services/ExportsSalesInvoiceReport.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Classes/Modules/Exports/Services/ExportsSalesInvoiceReport.php b/app/Classes/Modules/Exports/Services/ExportsSalesInvoiceReport.php index ff3f66c2..f91a5f9a 100644 --- a/app/Classes/Modules/Exports/Services/ExportsSalesInvoiceReport.php +++ b/app/Classes/Modules/Exports/Services/ExportsSalesInvoiceReport.php @@ -72,7 +72,7 @@ class ExportsSalesInvoiceReport implements FromQuery, WithHeadings, WithHeadingR 'transactions.voucherRedemption', 'transactions.voucherRedemption.voucher.campaign' ]) - // ->where('status', ApprovalStatus::COMPLETED) + ->whereIn('status', [ApprovalStatus::APPROVED, ApprovalStatus::COMPLETED]) ->whereHas('transactions', function ($query) use ($startDate, $endDate) { $query->payments() ->complete()