fix lejeram for lelong

This commit is contained in:
Hafifie PKB
2024-08-28 15:40:10 +08:00
parent d49874fb5d
commit e438bfe7bc
3 changed files with 15 additions and 5 deletions
+1 -1
View File
@@ -147,7 +147,7 @@ class ImbangDugaService
->get()->toArray();
$upahlelong = Lelong::on($cawangan['mysql'])
->where([['t_jual', '>=', $firstMonth], ['t_jual', '<=', $lastMonth], ['t_jual', '>', '2022-07-24']])
->where([['tagujrah','=',0],['t_jual', '>=', $firstMonth], ['t_jual', '<=', $lastMonth], ['t_jual', '>', '2022-07-24']])
->whereYear('t_jual', '=', $currentDate->year)
->sum('bakiupah');