import bank record

This commit is contained in:
Omair Saleh
2023-03-13 01:15:42 +08:00
parent f6faad4c1f
commit 2e4395d649
@@ -28,7 +28,7 @@ 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();
dd($transaction);
if(!count($transaction)) return;
dd($transaction);