Merge branch 'branch_fix' into 'master'

adding backup imbang duga

See merge request online-sistem1/api_arrahn!166
This commit is contained in:
hafifie rahman
2022-12-20 17:51:58 +00:00
2 changed files with 14 additions and 0 deletions
@@ -1503,4 +1503,17 @@ class LaporanController extends Controller
return response()->json($e,500);
}
}
public function SemakanBackupImbangDuga($kodcaw,Request $request){
$cawangan = Cawangan::on('mysql7')->where('kodcaw','=',$kodcaw)->first();
$response = imbangdugabackup::on($cawangan['mysql'])->where('tarikh',$request->tarikh)->first()->toArray();
if($response){
return response()->json($response,200);
}else{
return response('notfound');
}
}
}
+1
View File
@@ -509,6 +509,7 @@ $router->group(['prefix'=>'api'], function () use ($router){
/* Pembaharuan Akrual */
$router->get('Lejer/Keuntungan/{kodcaw}',['uses'=>'LaporanController@SemakanKeuntunganLejer']);
$router->get('Lejer/PendapatanAkrual/{kodcaw}',['uses'=>'LaporanController@SemakanPendapatanAkrual']);
$router->get('Backup/ImbangDuga/{kodcaw}',['uses'=>'LaporanController@SemakanBackupImbangDuga']);
//END IMBANG DUGA & LEJER AM//