fix skit2
This commit is contained in:
@@ -391,13 +391,7 @@ class CustomerController extends Controller
|
||||
}
|
||||
|
||||
public function customerUpdateKaunter($nokp,Request $request){
|
||||
// $cawangan_all = Cawangan::on('mysql7')->get();
|
||||
// foreach($cawangan_all as $index=>$cawangan){
|
||||
// $customer = Customer::on($cawangan['mysql'])
|
||||
// ->where('kplama','=',$nokp)
|
||||
// ->orWhere('kpbaru','=',$nokp)
|
||||
// ->first();
|
||||
// if($customer != null){
|
||||
|
||||
$poskod = Poskod::on('mysql7')->where('poskod','=',$request->poskod)->first();
|
||||
$customer_update = Customer::on('mysql7')
|
||||
->where('kplama','=',$nokp)
|
||||
@@ -407,10 +401,12 @@ class CustomerController extends Controller
|
||||
'telefon2' => $request->telefon2,
|
||||
'kodbank' => $request->kodbank,
|
||||
'noakaun' => $request->noakaun,
|
||||
'nota' => $request->nota
|
||||
'nota' => $request->nota,
|
||||
'alamat1' => $request->alamat,
|
||||
'poskod' => $request->poskod,
|
||||
'koddaerah' => $poskod['koddaerah'],
|
||||
'kodnegeri' => $poskod['kodnegeri']
|
||||
));
|
||||
// }
|
||||
// }
|
||||
|
||||
return response()->json($customer_update, 200);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user