export based on payment date

This commit is contained in:
Omair Saleh
2024-07-01 13:17:22 +08:00
parent 56dca799f8
commit aac04c4135
@@ -100,7 +100,6 @@ class ExportsPaymentTransactions implements FromQuery, WithHeadings, WithHeading
$transaction->where('type', TransactionType::PAYMENT)->where('updated_at', '>=', Carbon::parse($end_date)->format('Y-m-d 0:00:00'));
});
}
$query->dd();
return $query;
}
@@ -169,7 +168,7 @@ class ExportsPaymentTransactions implements FromQuery, WithHeadings, WithHeading
return [
'<<New>>',
$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,
$order->reference,