E-Invoice - Sales Invoice Report, updated filtering logic

This commit is contained in:
Dillon Ngo
2025-08-10 22:50:37 +08:00
parent fb3a1668d3
commit cbf650c8be
@@ -96,6 +96,10 @@ class ExportsSalesInvoiceReport implements FromQuery, WithHeadings, WithHeadingR
return $records;
}
if($company->e_invoice === 1){
$documentDate = $documentDate->copy()->endOfMonth();
}
$invoiceTransaction = $booking->transactions()->where('type', TransactionType::INVOICE)->complete()->first();
$currencyId = $booking->fix_currency_id;