fixing list konfimasibank
This commit is contained in:
@ -103,7 +103,7 @@ class KonfirmasiBankController extends Controller
|
||||
$arrAccount = [];
|
||||
$startDate = Carbon::parse($request->startDate);
|
||||
|
||||
$dateCore = $startDate->subDays(2)->format('m/d/Y');
|
||||
$dateCore = $startDate->addDays(2)->format('m/d/Y');
|
||||
$Accounts = $Account->getSearchAccount($request->cif, $arrAccount, $request->kodecabang, $dateCore)->get();
|
||||
|
||||
foreach ($Accounts as $key => $value) {
|
||||
@ -347,8 +347,7 @@ class KonfirmasiBankController extends Controller
|
||||
{
|
||||
$arrAccount = explode(",", $request['accNo']);
|
||||
$startDate = Carbon::parse($request['startDate2']);
|
||||
// dd($tanggal1 );
|
||||
$dateCore = $startDate->subDays(2);
|
||||
$dateCore = $startDate->addDays(2);
|
||||
// dd( $dateCore);
|
||||
$Account = new Account();
|
||||
$data = [];
|
||||
@ -362,7 +361,7 @@ class KonfirmasiBankController extends Controller
|
||||
$listAccount = $Account->getAccount($request['cusNo'], $arrAccount, $dateCore)->get();
|
||||
// DD($listAccount);
|
||||
|
||||
// try {
|
||||
try {
|
||||
foreach ($listAccount as $key1 => $account) {
|
||||
$dataAADepo = $Account->getArr($request['cusNo'], $account->ACCOUNT_NUMBER, $dateCore)->first();
|
||||
|
||||
@ -500,9 +499,9 @@ class KonfirmasiBankController extends Controller
|
||||
|
||||
$ListLimits = $Account->getLimit($request['cusNo'], $request['startDate2'])->get();
|
||||
$signer = Signer::where('id', $request['signerId'])->where('status', 1)->get();
|
||||
$batchDate = Carbon::parse($request['startDate2']);
|
||||
$batchDateSearch = Carbon::parse($request['startDate2']);
|
||||
$currentDate = Carbon::now();
|
||||
$tanggalIndonesia = strtoupper($batchDate->locale('id')->isoFormat('D MMMM YYYY')); // Mengubah seluruh string menjadi huruf besar
|
||||
$tanggalIndonesia = strtoupper($batchDateSearch->locale('id')->isoFormat('D MMMM YYYY')); // Mengubah seluruh string menjadi huruf besar
|
||||
$today = strtoupper($currentDate->locale('id')->isoFormat('D MMMM YYYY'));
|
||||
$letter = new Letters();
|
||||
$infoSuratNew = $letter->where('no_cif', $request['cusNo'])->orderBy('id', 'DESC')->first();
|
||||
@ -562,9 +561,9 @@ 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;
|
||||
|
||||
|
Reference in New Issue
Block a user