Merge branch 'apiaku' into 'master'

fix kelulusan

See merge request online-sistem1/api_arrahn!20
This commit is contained in:
hafifie rahman
2021-01-17 00:57:07 +00:00
2 changed files with 4 additions and 5 deletions
+3 -3
View File
@@ -396,7 +396,7 @@ class GadaiController extends Controller
->selectRaw('COUNT(*) AS bilangan, SUM(nilaimarhun) as jumlahmarhun, SUM(pinjaman) as jumlahpinjaman')
->where('t_gadai','<=',$tarikh)
// ->where('sttebus','=','')
->whereYear('t_gadai','=',$current->year)
// ->whereYear('t_gadai','=',$current->year)
->orderBy('t_gadai','desc')
->get();
@@ -405,7 +405,7 @@ class GadaiController extends Controller
->selectRaw('COUNT(*) AS bilangan, SUM(nilaimarhun) as jumlahmarhun, SUM(pinjaman) as jumlahpinjaman, SUM(bakiupah) as upahsimpan')
->where('t_gadai','<=',$tarikh)
->where('sttebus','=','T')
->whereYear('t_gadai','=',$current->year)
// ->whereYear('t_gadai','=',$current->year)
->orderBy('t_gadai','desc')
->get();
@@ -413,7 +413,7 @@ class GadaiController extends Controller
->selectRaw('COUNT(*) AS bilangan, SUM(nilaimarhun) as jumlahmarhun, SUM(pinjaman) as jumlahpinjaman')
->where('t_gadai','<=',$tarikh)
->where('sttebus','=','L')
->whereYear('t_gadai','=',$current->year)
// ->whereYear('t_gadai','=',$current->year)
->orderBy('t_gadai','desc')
->get();
+1 -2
View File
@@ -77,8 +77,7 @@ class KelulusanController extends Controller
->where('norujukan','=',$norujukan)
->update(array(
'masalulus'=> $harini->toTimeString(),
'khazanah'=> 'khazanah'
'pelulus'=> 'khazanah'
));
}
else