E-Invoice - Update the conditions for generating Sales Invoice Report

This commit is contained in:
Dillon Ngo
2025-11-27 11:38:23 +08:00
parent c5ceeba0d0
commit 940c9d5344
@@ -72,7 +72,7 @@ class ExportsSalesInvoiceReport implements FromQuery, WithHeadings, WithHeadingR
'transactions.voucherRedemption',
'transactions.voucherRedemption.voucher.campaign'
])
->whereIn('status', [ApprovalStatus::APPROVED, ApprovalStatus::COMPLETED])
->whereIn('status', [ApprovalStatus::COMPLETED])
->whereHas('transactions', function ($query) use ($startDate, $endDate) {
$query->payments()
->complete()