online transaction
This commit is contained in:
@@ -30,7 +30,7 @@ class CustomerController extends Controller
|
||||
public function getLatestCustomer($kodcaw){
|
||||
$cawangan = Cawangan::on('mysql7')->where('kodcaw','=',$kodcaw)->first();
|
||||
|
||||
$customer = Customer::on($cawangan['mysql'])->orderBy('nosiri','desc')->first();
|
||||
$customer = Customer::on($cawangan['mysql'])->orderBy('tarikh','desc')->orderBy('nosiri','desc')->first();
|
||||
|
||||
return response()->json($customer);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user