fix gadai

This commit is contained in:
hafifierahman
2021-03-17 16:39:39 +08:00
parent cc570065d6
commit 5e571e24d0
9 changed files with 291 additions and 47 deletions
+4 -4
View File
@@ -104,25 +104,25 @@ class PanjarController extends Controller
$cawangan = Cawangan::on('mysql7')->where('kodcaw','=',$kodcaw)->first();
$current = Carbon::now();
$current = new Carbon();
$current = new Carbon($request->tarikh);
$baikidanselenggara = Panjar::on($cawangan['mysql'])
// ->where('tarikh','>=', $request->mula)
// ->where('tarikh','<=', $request->akhir)
->where('tarikh','<=', $request->tarikh)
->where('tag', '=', 2)
->whereYear('tarikh','=',$current->year)
->sum('bayaran');
$perubatan = Panjar::on($cawangan['mysql'])
// ->where('tarikh','>=', $request->mula)
// ->where('tarikh','<=', $request->akhir)
->where('tarikh','<=', $request->tarikh)
->where('tag', '=', 1)
->whereYear('tarikh','=',$current->year)
->sum('bayaran');
$keraian = Panjar::on($cawangan['mysql'])
// ->where('tarikh','>=', $request->mula)
// ->where('tarikh','<=', $request->akhir)
->where('tarikh','<=', $request->tarikh)
->where('tag', '=', 3)
->whereYear('tarikh','=',$current->year)
->sum('bayaran');