update controller konfirmasibank
This commit is contained in:
@ -42,11 +42,8 @@
|
||||
}
|
||||
// dd($request);
|
||||
$data = [];
|
||||
// Tanggal awal
|
||||
// Contoh tanggal saat ini
|
||||
$today = Carbon::now();
|
||||
// dd( $today->format());
|
||||
|
||||
// Menambahkan 1 tahun ke tanggal saat ini
|
||||
$currentYear = $today->format("Y");
|
||||
|
||||
@ -78,15 +75,13 @@
|
||||
$Account = new ViewAccount;
|
||||
$arrAccount = [];
|
||||
$startDate = Carbon::parse($request->startDate);
|
||||
$dateCore = $startDate->subDays(2);
|
||||
$dateCore = $startDate->subDays(2)->format('d/m/Y');
|
||||
// dd($dateCore);
|
||||
|
||||
|
||||
$Accounts = $Account->getSearchAccount($request->cif,$arrAccount,$request->kodecabang, $dateCore)->get();
|
||||
|
||||
// $Arrangement = $Account->getAAaccount($request->cif)->get();
|
||||
|
||||
$maturityDate = '';
|
||||
$aaID= '';
|
||||
$product = '';
|
||||
foreach ($Accounts as $key => $account) {
|
||||
$Arrangement = $Account->getAAaccount($request->cif , $account->ACCOUNT_NUMBER)->first();
|
||||
@ -118,6 +113,8 @@
|
||||
}
|
||||
|
||||
$arrAccount = explode("," , $request['acc_no']);
|
||||
$startDate = Carbon::parse($request['startDate']);
|
||||
$dateCore = $startDate->subDays(2)->format('d/m/Y');
|
||||
|
||||
$ViewAccount = new ViewAccount;
|
||||
$data = [];
|
||||
@ -126,7 +123,7 @@
|
||||
$DataLimit = [];
|
||||
$DataAA = [];
|
||||
|
||||
$listAccount = $ViewAccount->getAccount($request['cus_no'],$arrAccount,$request['kode_cabang'], $request['startDate'])->get();
|
||||
$listAccount = $ViewAccount->getAccount($request['cus_no'],$arrAccount,$request['kode_cabang'], $dateCore)->get();
|
||||
|
||||
$GetCustomer = $ViewAccount->getCustomer($request['cus_no'])->first();
|
||||
|
||||
@ -143,7 +140,7 @@
|
||||
$DataAccounts[$key1]['CUSTOMER_NO'] = $account->CUSTOMER_NO;
|
||||
$DataAccounts[$key1]['SHORT_NAME'] = $account->SHORT_NAME;
|
||||
$DataAccounts[$key1]['CURRENCY'] = $account->CURRENCY;
|
||||
$DataAccounts[$key1]['PRODUCT'] = $Arrangement->PRODUCT;
|
||||
$DataAccounts[$key1]['PRODUCT'] = $Arrangement->PRODUCT ?? 'NIHIL';
|
||||
$DataAccounts[$key1]['COMPANY_NAME'] = $account->COMPANY_NAME;
|
||||
$DataAccounts[$key1]['WORKING_BALANCE'] = $account->WORKING_BALANCE;
|
||||
$DataAccounts[$key1]['MATURITY_DATE'] = $Arrangement->MATURITY_DATE ?? 'NIHIL' ;
|
||||
@ -154,8 +151,7 @@
|
||||
|
||||
|
||||
|
||||
$ListPinjaman =$ViewAccount->getPinjaman($request['cus_no'],$arrAccount )->get();
|
||||
|
||||
$ListPinjaman =$ViewAccount->getPinjaman($request['cus_no'],$arrAccount , $dateCore )->get();
|
||||
|
||||
$ListLimits = $ViewAccount->getLimit($request['cus_no'],$request['periode']);
|
||||
$fasilitas = Fasilitas::where('nomor_cif',$request['cus_no'] )->where('status',1)->get();
|
||||
|
Reference in New Issue
Block a user