set date core
This commit is contained in:
@ -39,7 +39,7 @@ class ViewAccount extends Model
|
||||
];
|
||||
|
||||
public function getSearchAccount($cif ,$arrAccount, $kodecabang, $startDate){
|
||||
// dd($cif ,$arrAccount, $kodecabang, $startDate);
|
||||
// dd($cif ,$arrAccount, $kodecabang, $startDate);
|
||||
$uppercaseKodeCabang = Str::upper($kodecabang);
|
||||
$data = [];
|
||||
|
||||
|
@ -76,12 +76,12 @@
|
||||
$data = [];
|
||||
$Account = new ViewAccount;
|
||||
$arrAccount = [];
|
||||
$startDate = Carbon::parse($request->startDate)->format('m/d/Y');
|
||||
// $dateCore = $startDate->subDays(2)->format('m/d/Y');
|
||||
$startDate = Carbon::parse($request->startDate);
|
||||
$dateCore = $startDate->subDays(2)->format('m/d/Y');
|
||||
//dd($dateCore);
|
||||
|
||||
|
||||
$Accounts = $Account->getSearchAccount($request->cif,$arrAccount,$request->kodecabang, $startDate)->get();
|
||||
$Accounts = $Account->getSearchAccount($request->cif,$arrAccount,$request->kodecabang, $dateCore)->get();
|
||||
|
||||
// $product = '';
|
||||
// foreach ($Accounts as $key => $account) {
|
||||
@ -116,7 +116,7 @@
|
||||
|
||||
$arrAccount = explode("," , $request['acc_no']);
|
||||
$startDate = Carbon::parse($request['startDate']);
|
||||
//$dateCore = $startDate->subDays(2)->format('d/m/Y');
|
||||
$dateCore = $startDate->subDays(2);
|
||||
|
||||
$ViewAccount = new ViewAccount;
|
||||
$data = [];
|
||||
@ -125,7 +125,7 @@
|
||||
$DataLimit = [];
|
||||
$DataAA = [];
|
||||
|
||||
$listAccount = $ViewAccount->getAccount($request['cus_no'],$arrAccount,$request['kode_cabang'], $request['startDate'])->get();
|
||||
$listAccount = $ViewAccount->getAccount($request['cus_no'],$arrAccount,$request['kode_cabang'], $dateCore)->get();
|
||||
|
||||
$GetCustomer = $ViewAccount->getCustomer($request['cus_no'])->first();
|
||||
|
||||
@ -152,8 +152,7 @@
|
||||
}
|
||||
|
||||
|
||||
$ListPinjaman =$ViewAccount->getPinjaman($request['cus_no'],$arrAccount , $startDate )->get();
|
||||
// dd($ListPinjaman);
|
||||
$ListPinjaman =$ViewAccount->getPinjaman($request['cus_no'],$arrAccount , $dateCore )->get();
|
||||
|
||||
$ListLimits = $ViewAccount->getLimit($request['cus_no'],$request['periode']);
|
||||
$fasilitas = Fasilitas::where('nomor_cif',$request['cus_no'] )->where('status',1)->get();
|
||||
@ -527,5 +526,4 @@
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user