From 4b699345b8756f3f1b47e5c78878828f0d59bfbb Mon Sep 17 00:00:00 2001 From: Omair Saleh Date: Wed, 16 Nov 2022 16:32:45 +0800 Subject: [PATCH] update export invoice --- .../Modules/Exports/Services/ExportsPaymentTransactions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Classes/Modules/Exports/Services/ExportsPaymentTransactions.php b/app/Classes/Modules/Exports/Services/ExportsPaymentTransactions.php index d810fc9b..73c88bbd 100644 --- a/app/Classes/Modules/Exports/Services/ExportsPaymentTransactions.php +++ b/app/Classes/Modules/Exports/Services/ExportsPaymentTransactions.php @@ -63,7 +63,7 @@ class ExportsPaymentTransactions implements FromQuery, WithHeadings, WithHeading $query->where('type', TransactionType::SHIPPING_INVOICE)->whereIn('status', [ApprovalStatus::COMPLETED]); if($start_date && $end_date) { - $query->whereBetween('created_at', [ + $query->whereBetween('update_at', [ Carbon::parse($start_date)->format('Y-m-d 0:00:00'), Carbon::parse($end_date)->format('Y-m-d 23:59:59') ]);