update export invoice

This commit is contained in:
Omair Saleh
2022-11-16 16:32:45 +08:00
parent 634a97f3b4
commit 4b699345b8
@@ -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')
]);