mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-25 15:34:02 +00:00
import bank record
This commit is contained in:
@@ -82,8 +82,12 @@ class ImportBankRecordController
|
||||
if(!count($debitTransactions)) {
|
||||
foreach (['YSN', 'HCK', 'ATVANTIC', 'HIGH HILL'] as $reference){
|
||||
if(str_contains($description, $reference)) {
|
||||
$paymentDate = $date->addDays(1)->format('Y-m-d');
|
||||
if($reference = 'ATVANTIC'){
|
||||
$paymentDate = $date->format('Y-m-d');
|
||||
}
|
||||
$issuer = Company::where('name', 'like', '%'.$reference.'%')->get()->pluck('id');
|
||||
$debitTransactions = Group::whereIn('issuer', $issuer)->whereDate('created_at', $date->addDays(1)->format('Y-m-d'))->get();
|
||||
$debitTransactions = Group::whereIn('issuer', $issuer)->whereDate('created_at', $paymentDate)->get();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user