update table customer
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);
|
||||
$uppercaseKodeCabang = Str::upper($kodecabang);
|
||||
$data = [];
|
||||
|
||||
@ -52,9 +52,9 @@ class ViewAccount extends Model
|
||||
->where('CUSTOMER_NO',$cif)
|
||||
->where('COMPANY_NAME', 'like', "%" .$uppercaseKodeCabang."%")
|
||||
->where('INACTIV_MARKER', NULL)
|
||||
->where('BATCH_DATE', $startDate)
|
||||
->where('BATCH_DATE',$startDate)
|
||||
->whereIn(DB::raw("LEFT(CATEGORY, 3)"),['100','600','660','101']);
|
||||
// ->groupBy('CUSTOMER_NO','ACCOUNT_NUMBER','SHORT_NAME','BATCH_DATE','SHORT_TITLE','CURRENCY','COMPANY_NAME','OPENING_DATE','INACTIV_MARKER');
|
||||
//->groupBy('CUSTOMER_NO','ACCOUNT_NUMBER','SHORT_NAME','BATCH_DATE','SHORT_TITLE','CURRENCY','COMPANY_NAME','OPENING_DATE','INACTIV_MARKER');
|
||||
}else{
|
||||
$data = DB::connection("db2")->table("STG_DB.VW_ACCOUNT")
|
||||
->select('*')
|
||||
@ -85,7 +85,7 @@ class ViewAccount extends Model
|
||||
|
||||
public function getAAaccount($cust, $acc){
|
||||
$data = [];
|
||||
$data = DB::connection("db2")->table("STG_DB.VW_AA_ACCOUNT")->select('*')
|
||||
$data = DB::connection("db2")->table("STG_DB.VW_AA_ACCOUNT")->select('MATURITY_DATE','PRODUCT','TERM')
|
||||
// ->where('CUSTOMER', $cif)
|
||||
->where('CUSTOMER', $cust)
|
||||
->where('LINKED_APPL_ID', $acc);
|
||||
@ -94,12 +94,13 @@ class ViewAccount extends Model
|
||||
|
||||
|
||||
public function getPinjaman($cus_no,$arrAccount, $dateCore){
|
||||
|
||||
$data = [];
|
||||
$data = DB::connection("db2")->table("STG_DB.VW_AA_ARR")
|
||||
->select('*')
|
||||
->where('CUSTOMER',$cus_no)
|
||||
->where('CATEGORY' , 3)
|
||||
->where('BATCH_DATE', $dateCore);
|
||||
->where('CATEGORY' , 3);
|
||||
// ->where('BATCH_DATE', $dateCore);
|
||||
|
||||
return $data;
|
||||
|
||||
|
Reference in New Issue
Block a user