fix anjak piutang
This commit is contained in:
@ -492,7 +492,6 @@ class KonfirmasiBankController extends Controller
|
||||
|
||||
try {
|
||||
$listAccountRK = $Account->getAccountRK($arrAccount, $dateCoreAccount)->get();
|
||||
|
||||
} catch (\Illuminate\Database\QueryException $e) {
|
||||
return redirect()->route('konfirmasibank.timeout');
|
||||
}
|
||||
@ -533,7 +532,7 @@ class KonfirmasiBankController extends Controller
|
||||
|
||||
//Get DatA Anjak
|
||||
|
||||
try {
|
||||
try {
|
||||
$ListAnjak = $Account->getAccountAnjak($rekEscrow, $dateCoreAccount)->get();
|
||||
|
||||
} catch (\Illuminate\Database\QueryException $e) {
|
||||
@ -541,7 +540,6 @@ class KonfirmasiBankController extends Controller
|
||||
}
|
||||
$totalOutstanding = $ListAnjak->sum('OUTSTANDING') != null ? number_format(abs($ListAnjak->sum('OUTSTANDING')), 2, ',', '.') : 'NIHIL';
|
||||
|
||||
|
||||
$ListLimits = $Account->getLimit($request['cusNo'], $request['startDate2'])->get();
|
||||
$signer = Signer::where('id', $request['signerId'])->where('status', 1)->get();
|
||||
$batchDate = Carbon::parse($request['startDate2']);
|
||||
@ -563,6 +561,7 @@ class KonfirmasiBankController extends Controller
|
||||
$data['DataDepo'] = $DataDepo;
|
||||
$data['infoSuratNew'] = $infoSuratNew;
|
||||
$data['totalOutstanding'] = $totalOutstanding;
|
||||
$data['loanCcy'] = $ListAnjak[0]->LOAN_CCY;
|
||||
|
||||
|
||||
$pdf = PDF::loadview('konfirmasibank::exportPdf', ['data' => $data]);
|
||||
@ -855,4 +854,4 @@ class KonfirmasiBankController extends Controller
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user