mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
import bank record
This commit is contained in:
@@ -79,8 +79,8 @@ class ImportBankRecordController
|
||||
|
||||
if($debit){
|
||||
$debitTransactions = $this->getTransactions($date, $debit, null, null, null, [ApprovalStatus::APPROVED, ApprovalStatus::COMPLETED], Group::class);
|
||||
dump($debitTransactions);
|
||||
if(!$debitTransactions) {
|
||||
|
||||
if(!count($debitTransactions)) {
|
||||
foreach (['YSN', 'HCK', 'AVANTIC', 'HIGH HILL'] as $reference){
|
||||
if(str_contains($description, $reference)) {
|
||||
$issuer = Company::where('name', 'like', '%'.$reference.'%')->get()->pluck('id');
|
||||
|
||||
Reference in New Issue
Block a user