mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-09-01 19:04:00 +00:00
import bank record
This commit is contained in:
@@ -28,15 +28,15 @@ class ImportsBankRecord implements ToModel, WithHeadingRow, WithBatchInserts, Wi
|
||||
$transaction = Transaction::whereIn('status', [ApprovalStatus::APPROVED, ApprovalStatus::COMPLETED])
|
||||
->where('type', TransactionType::PAYMENT)->where('owner_type', Booking::class)
|
||||
->WhereDate('created_at', $date->format('Y-m-d'))
|
||||
->where('amount', '>=', $credit)->where('amount', '<', ($credit + 0.01))->get();
|
||||
->where('amount', '>=', $credit)->where('amount', '<', ($credit + 0.01))
|
||||
->get();
|
||||
|
||||
if(!count($transaction)) return;
|
||||
|
||||
|
||||
dump([
|
||||
'date' => $date,
|
||||
'date' => $date->format('d-m-Y'),
|
||||
'credit' => $credit,
|
||||
'payments' => $transaction->pluck('owner.marking')->flatten()->impolod(', ')
|
||||
'payments' => $transaction->pluck('owner.marking')->flatten()->implode(', ')
|
||||
]);
|
||||
|
||||
// try {
|
||||
|
||||
Reference in New Issue
Block a user