import bank record

This commit is contained in:
Omair Saleh
2023-03-18 05:05:54 +08:00
parent fd991d19e0
commit 99beec8428
@@ -55,7 +55,7 @@ class ImportBankRecordController
$debit = (float) $row['debit'];
$creditTransactions = $this->getTransactions($date, $credit, TransactionType::PAYMENT, Booking::class, PaymentMethodType::WALLET, [ApprovalStatus::APPROVED, ApprovalStatus::COMPLETED]);
$debitTransactions = $this->getTransactions($date, $debit, null, null, null, null, Group::class);
$debitTransactions = $this->getTransactions($date, $debit, null, null, null, [ApprovalStatus::APPROVED, ApprovalStatus::COMPLETED], Group::class);
$systemReference = null;
$multiple = count($creditTransactions) + count($debitTransactions) > 1 ? $yes : $no;