add each cawangan nama cawangan

This commit is contained in:
hafifierahman
2021-09-19 08:09:49 +08:00
parent a267f0fbd7
commit 6bb56b94e1
+2 -2
View File
@@ -719,9 +719,9 @@ class CustomerController extends Controller
->select('kodcaw') ->select('kodcaw')
->where('nokp', '=', $ic) ->where('nokp', '=', $ic)
->first(); ->first();
if($customer) if($customer)
array_push($custcawangan, $customer); array_push($custcawangan,['kodcaw' => $customer['kodcaw'], 'namacawangan' => $cawangan['details_caw']]);
} }
return response()->json($custcawangan); return response()->json($custcawangan);