add get request for kadar ujrah
This commit is contained in:
@@ -3881,6 +3881,15 @@ class GadaiController extends Controller
|
||||
return $kadarujrah;
|
||||
}
|
||||
|
||||
public function getKadarUjrahByGroupId(Request $request)
|
||||
{
|
||||
$cawangan = Cawangan::on('mysql7')->where('kodcaw','=',$request->kodcaw)->select('kodcaw', 'mysql', 'group_id')->first();
|
||||
|
||||
$kadar_ujrah = KadarUpah::where('group_id', $cawangan->group_id)->get();
|
||||
|
||||
return $kadar_ujrah;
|
||||
}
|
||||
|
||||
public function getOnePercent(Request $request){
|
||||
|
||||
$onePercentServices = new OnePercentServices();
|
||||
|
||||
@@ -589,6 +589,7 @@ $router->group(['prefix'=>'api'], function () use ($router){
|
||||
//One Percent
|
||||
$router->get('kadarujrah',['uses' => 'GadaiController@getKadarUjrah']);
|
||||
$router->post('onepercent',['uses' => 'GadaiController@getOnePercent']);
|
||||
$router->get('kadarujrah/by_group_id',['uses' => 'GadaiController@getKadarUjrahByGroupId']);
|
||||
|
||||
//STOKAUDITKHAS
|
||||
$router->get('stokauditkhas/aktif/{kodcaw}',['uses'=>'StokAuditController@LaporanAuditKhasAktif']);
|
||||
|
||||
Reference in New Issue
Block a user