fix marginpinj
This commit is contained in:
@@ -246,4 +246,14 @@ class MarhunController extends Controller
|
||||
|
||||
return response()->json($totalnilaimarhun);
|
||||
}
|
||||
|
||||
public function getMarhunCaw($kodcaw,$norujukan)
|
||||
{
|
||||
$cawangan = Cawangan::on('mysql7')->where('kodcaw','=',$kodcaw)->first();
|
||||
$data = Marhun::on($cawangan['mysql'])
|
||||
->where('norujukan','=', $norujukan)
|
||||
->sum('marhun.n_marhun');
|
||||
return response()->json($data,200);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -178,6 +178,8 @@ $router->group(['prefix'=>'api'], function () use ($router){
|
||||
$router->get('marhunterkumpul/laporan/{kodcaw}/{tarikh}',['uses'=>'MarhunController@getLaporanMarhunTerkumpul']);
|
||||
$router->get('marhun/mutu/sag',['uses'=>'MarhunController@getMutuMarhun']);
|
||||
$router->get('marhun/nilai/terkini',['uses'=>'MarhunController@getNilaiMarhunLatest']);
|
||||
//new added 230624
|
||||
$router->get('marhun/gadai/{kodcaw}/{norujukan}',['uses'=>'MarhunController@getMarhunCaw']);
|
||||
|
||||
|
||||
$router->get('jemas',['uses'=>'MarhunController@getAllJemas']);
|
||||
|
||||
Reference in New Issue
Block a user