fix skit2

This commit is contained in:
MUHD HAFIFIE
2021-08-22 16:15:13 +08:00
parent 1db358001b
commit 784c667247
2 changed files with 7 additions and 11 deletions
+6 -10
View File
@@ -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);
}