pembuatan api
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user