fixing list data deposito
This commit is contained in:
@ -358,13 +358,14 @@ class KonfirmasiBankController extends Controller
|
||||
$DataAnjak = [];
|
||||
$GetCustomer = $Account->getCustomer($request['cusNo'])->first();
|
||||
$listAccount = $Account->getAccount($request['cusNo'], $arrAccount, $dateCore)->get();
|
||||
// dd( $listAccount);
|
||||
|
||||
try {
|
||||
// try {
|
||||
foreach ($listAccount as $key1 => $account) {
|
||||
$dataAADepo = $Account->getAA($request['cusNo'], $account->ACCOUNT_NUMBER, $dateCore)->first();
|
||||
// dd($dataAADepo);
|
||||
if ($account->CATEGORY == '6603' || $account->CATEGORY == '6602') {
|
||||
if ($dataAADepo != null) {
|
||||
|
||||
$tenor = '';
|
||||
$tanggal_1 = date_create($dataAADepo->RENEWAL_DATE);
|
||||
$tanggal_2 = date_create($dataAADepo->START_DATE);
|
||||
@ -409,6 +410,8 @@ class KonfirmasiBankController extends Controller
|
||||
|
||||
}
|
||||
|
||||
//dd( $DataAccounts);
|
||||
|
||||
$Arrangement = $Account->getPinjaman($request['cusNo'], $dateCore)->get();
|
||||
|
||||
foreach ($Arrangement as $key2 => $pinjaman) {
|
||||
@ -429,7 +432,6 @@ class KonfirmasiBankController extends Controller
|
||||
$listAccountRK = $Account->getAccountRK($request['cusNo'], $dateCore)->get();
|
||||
|
||||
|
||||
|
||||
foreach ($listAccountRK as $rk => $valRk) {
|
||||
if ($valRk->CATEGORY == '1003') {
|
||||
$rateRK = "";
|
||||
@ -544,11 +546,11 @@ class KonfirmasiBankController extends Controller
|
||||
|
||||
return $pdf->stream($filename);
|
||||
|
||||
} catch (Exception $e) {
|
||||
echo json_encode(['status' => 'error', 'message' => $e->getMessage()]);
|
||||
}
|
||||
// } catch (Exception $e) {
|
||||
// echo json_encode(['status' => 'error', 'message' => $e->getMessage()]);
|
||||
// }
|
||||
|
||||
return false;
|
||||
// return false;
|
||||
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user