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