update table customer
This commit is contained in:
@ -13,6 +13,8 @@
|
||||
use Modules\Konfirmasibank\Entities\Signer;
|
||||
use Modules\Konfirmasibank\Entities\Category;
|
||||
use Modules\Konfirmasibank\Entities\Company;
|
||||
use Modules\Konfirmasibank\Entities\Account;
|
||||
use Modules\Konfirmasibank\Entities\Arrangement;
|
||||
use Modules\Konfirmasibank\Entities\TermAmount;
|
||||
use Dompdf\Dompdf;
|
||||
use Dompdf\Options;
|
||||
@ -74,33 +76,33 @@
|
||||
$data = [];
|
||||
$Account = new ViewAccount;
|
||||
$arrAccount = [];
|
||||
$startDate = Carbon::parse($request->startDate);
|
||||
$dateCore = $startDate->subDays(2)->format('d/m/Y');
|
||||
// dd($dateCore);
|
||||
$startDate = Carbon::parse($request->startDate)->format('m/d/Y');
|
||||
// $dateCore = $startDate->subDays(2)->format('m/d/Y');
|
||||
//dd($dateCore);
|
||||
|
||||
|
||||
$Accounts = $Account->getSearchAccount($request->cif,$arrAccount,$request->kodecabang, $dateCore)->get();
|
||||
$Accounts = $Account->getSearchAccount($request->cif,$arrAccount,$request->kodecabang, $startDate)->get();
|
||||
|
||||
// $product = '';
|
||||
// foreach ($Accounts as $key => $account) {
|
||||
// $Arrangement = $Account->getAAaccount($request->cif , $account->ACCOUNT_NUMBER)->first();
|
||||
|
||||
$product = '';
|
||||
foreach ($Accounts as $key => $account) {
|
||||
$Arrangement = $Account->getAAaccount($request->cif , $account->ACCOUNT_NUMBER)->first();
|
||||
// $data[$key]['CUSTOMER_NO'] = $account->CUSTOMER_NO;
|
||||
// $data[$key]['INACTIV_MARKER'] = $account->INACTIV_MARKER;
|
||||
// $data[$key]['ACCOUNT_NUMBER'] = $account->ACCOUNT_NUMBER;
|
||||
// $data[$key]['COMPANY_NAME'] = $account->COMPANY_NAME;
|
||||
// $data[$key]['SHORT_TITLE'] = $account->SHORT_TITLE;
|
||||
// $data[$key]['WORKING_BALANCE'] = $account->WORKING_BALANCE;
|
||||
// $data[$key]['SHORT_NAME'] = $account->SHORT_NAME;
|
||||
// $data[$key]['CURRENCY'] = $account->CURRENCY;
|
||||
// $data[$key]['BATCH_DATE'] = $account->BATCH_DATE;
|
||||
// $data[$key]['OPENING_DATE'] = '';
|
||||
// $data[$key]['MATURITY_DATE'] = '';
|
||||
// $data[$key]['PRODUCT'] = '';
|
||||
|
||||
$data[$key]['CUSTOMER_NO'] = $account->CUSTOMER_NO;
|
||||
$data[$key]['INACTIV_MARKER'] = $account->INACTIV_MARKER;
|
||||
$data[$key]['ACCOUNT_NUMBER'] = $account->ACCOUNT_NUMBER;
|
||||
$data[$key]['COMPANY_NAME'] = $account->COMPANY_NAME;
|
||||
$data[$key]['SHORT_TITLE'] = $account->SHORT_TITLE;
|
||||
$data[$key]['WORKING_BALANCE'] = $account->WORKING_BALANCE;
|
||||
$data[$key]['SHORT_NAME'] = $account->SHORT_NAME;
|
||||
$data[$key]['CURRENCY'] = $account->CURRENCY;
|
||||
$data[$key]['OPENING_DATE'] = Carbon::parse($account->OPENING_DATE)->format('d-m-Y');
|
||||
$data[$key]['MATURITY_DATE'] = $Arrangement->MATURITY_DATE ?? 'NIHIL';
|
||||
$data[$key]['PRODUCT'] = $Arrangement->PRODUCT ?? 'NIHIL';
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
return json_encode($data );
|
||||
return json_encode($Accounts );
|
||||
}
|
||||
|
||||
/*
|
||||
@ -114,7 +116,7 @@
|
||||
|
||||
$arrAccount = explode("," , $request['acc_no']);
|
||||
$startDate = Carbon::parse($request['startDate']);
|
||||
$dateCore = $startDate->subDays(2)->format('d/m/Y');
|
||||
//$dateCore = $startDate->subDays(2)->format('d/m/Y');
|
||||
|
||||
$ViewAccount = new ViewAccount;
|
||||
$data = [];
|
||||
@ -123,7 +125,7 @@
|
||||
$DataLimit = [];
|
||||
$DataAA = [];
|
||||
|
||||
$listAccount = $ViewAccount->getAccount($request['cus_no'],$arrAccount,$request['kode_cabang'], $dateCore)->get();
|
||||
$listAccount = $ViewAccount->getAccount($request['cus_no'],$arrAccount,$request['kode_cabang'], $request['startDate'])->get();
|
||||
|
||||
$GetCustomer = $ViewAccount->getCustomer($request['cus_no'])->first();
|
||||
|
||||
@ -134,7 +136,7 @@
|
||||
$AAID= '';
|
||||
foreach ($listAccount as $key1 => $account) {
|
||||
//$Arrangement = $ViewAccount->getAAaccount($account->CUSTOMER_NO,$account->ACCOUNT_NUMBER);
|
||||
$Arrangement = $ViewAccount->getAAaccount($request['cus_no'] , $account->ACCOUNT_NUMBER)->first();
|
||||
// $Arrangement = $ViewAccount->getAAaccount($request['cus_no'] , $account->ACCOUNT_NUMBER)->first();
|
||||
|
||||
$DataAccounts[$key1]['ACCOUNT_NUMBER'] = $account->ACCOUNT_NUMBER;
|
||||
$DataAccounts[$key1]['CUSTOMER_NO'] = $account->CUSTOMER_NO;
|
||||
@ -150,8 +152,8 @@
|
||||
}
|
||||
|
||||
|
||||
|
||||
$ListPinjaman =$ViewAccount->getPinjaman($request['cus_no'],$arrAccount , $dateCore )->get();
|
||||
$ListPinjaman =$ViewAccount->getPinjaman($request['cus_no'],$arrAccount , $startDate )->get();
|
||||
// dd($ListPinjaman);
|
||||
|
||||
$ListLimits = $ViewAccount->getLimit($request['cus_no'],$request['periode']);
|
||||
$fasilitas = Fasilitas::where('nomor_cif',$request['cus_no'] )->where('status',1)->get();
|
||||
@ -526,3 +528,4 @@
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user