fix anjak piutang

This commit is contained in:
KhatamNugraha
2024-06-25 11:19:16 +07:00
parent 044c686477
commit 65c199303b
4 changed files with 305 additions and 60 deletions

View File

@ -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
}
}
}