From 13f13c7a0e62950b38cde15ffa3ffadb69bb0372 Mon Sep 17 00:00:00 2001 From: Omair Saleh Date: Mon, 1 Jul 2024 13:46:12 +0800 Subject: [PATCH] export based on payment date --- .../Modules/Exports/Services/ExportsPaymentTransactions.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Classes/Modules/Exports/Services/ExportsPaymentTransactions.php b/app/Classes/Modules/Exports/Services/ExportsPaymentTransactions.php index 3ba27f81..6584a96a 100644 --- a/app/Classes/Modules/Exports/Services/ExportsPaymentTransactions.php +++ b/app/Classes/Modules/Exports/Services/ExportsPaymentTransactions.php @@ -31,6 +31,7 @@ class ExportsPaymentTransactions implements FromQuery, WithHeadings, WithHeading return [ 'DocNo', 'DocDate', + 'PaymentDate', 'DebtorCode', 'Ref', 'ShipInfo', @@ -142,6 +143,7 @@ class ExportsPaymentTransactions implements FromQuery, WithHeadings, WithHeading // Prepare each row based on the transaction detail $rows[] = [ $firstItem ? '<>' : '', + $transaction->created_at->format('m/d/Y H:m'), $transaction->transactions()->where('type', TransactionType::PAYMENT)->first()->updated_at->format('m/d/Y H:m'), $company->debtor, $order->reference,