pembuatan api

This commit is contained in:
hafifierahman
2020-12-28 18:36:49 +08:00
parent 52e91a2050
commit 232aa41f0e
17 changed files with 740 additions and 38 deletions
-35
View File
@@ -351,41 +351,6 @@ class GadaiController extends Controller
return response()->json($gadai);
}
//API FARIS
public function listPenebusanBaru($kodcaw)
{
$current = Carbon::now();
$current = new Carbon();
$cawangan = Cawangan::on('mysql7')->where('kodcaw','=',$kodcaw)->first();
$gadai = Gadai::on($cawangan['mysql'])
->where([
['t_update','=',$current->toDateString()],
['cetak','=',1],['tagserah','=',1],
['semakbarcode','=','Lulus']
])
->get();
return response()->json($gadai);
}
public function listSerahKhazanah($kodcaw)
{
$current = Carbon::now();
$current = new Carbon();
$cawangan = Cawangan::on('mysql7')->where('kodcaw','=',$kodcaw)->first();
$gadai = Gadai::on($cawangan['mysql'])->where([['cetak','=',1],['tagserah','=',1],['semakbarcode','=','Tebus'],['t_update','=',$current->toDateString()]])->get();
return response()->json($gadai);
}
//END API FARIS
public function getLaporanGadai($kodcaw,$tarikh){
$cawangan = Cawangan::on('mysql7')->where('kodcaw','=',$kodcaw)->first();