import bank record

This commit is contained in:
Omair Saleh
2023-03-18 05:35:11 +08:00
parent 779de8a7e9
commit 14efd5f60e
@@ -57,7 +57,7 @@ class ImportBankRecordController
$systemReference = null;
if($credit){
$creditTransactions = $this->getTransactions($date, $credit, TransactionType::PAYMENT, Booking::class, PaymentMethodType::WALLET, [ApprovalStatus::APPROVED, ApprovalStatus::COMPLETED]);
$creditTransactions = $this->getTransactions($date, $credit, TransactionType::PAYMENT, null, null, [ApprovalStatus::APPROVED, ApprovalStatus::COMPLETED]);
foreach ($creditTransactions as $transaction) {
$systemReference[] = $transaction->owner instanceof Booking ? $transaction->owner->marking : $transaction->bill_no;
}