Filter bakiLelong by kodlaluan teller

This commit is contained in:
aiman
2025-10-15 14:55:26 +08:00
parent a42d36f69b
commit ece4210134
@@ -1981,11 +1981,13 @@ class LelongController extends Controller
$rugiLelong = TuntutBaki::on($cawangan['mysql'])
->whereDate('tarikh', $date)
->where('jumlah', '<', 0)
->where('teller','=', $request->kodlaluan)
->sum('jumlah');
$bakiLelong = TuntutBaki::on($cawangan['mysql'])
->whereDate('tarikh', $date)
->where('jumlah', '>', 0)
->where('teller','=', $request->kodlaluan)
->sum('jumlah');
return response()->json([