Add new endpoint to search for tebus for 1 particular cawangan and for 1 particular sag
This commit is contained in:
@@ -2001,6 +2001,12 @@ class TebusController extends Controller
|
||||
return $response;
|
||||
}
|
||||
|
||||
public function showOneTebusbyRujukanAndCawangan($kodcaw,$norujukan){
|
||||
$cawangan = Cawangan::on('mysql7')->where('kodcaw','=',$kodcaw)->first();
|
||||
$tebus = Tebus::on($cawangan['mysql'])->where('norujukan','=',$norujukan)->get();
|
||||
|
||||
return response()->json($tebus);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user