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

This commit is contained in:
Dillon Ngo
2025-11-27 11:16:27 +08:00
parent ac3a71627c
commit c5ceeba0d0
@@ -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()