update baki lelong shj +ve

This commit is contained in:
BTMS2
2025-06-11 13:13:18 +08:00
parent 226f419c83
commit ab59fadb3f
+2 -1
View File
@@ -272,7 +272,8 @@ class LelonganService
'gadai.bakipjm', // Fetch pinjaman from gadai
'gadai.marhun' // Fetch marhun from gadai
)
->whereNull('lelong.trkhtuntut');
->whereNull('lelong.trkhtuntut')
->where('lelong.baki', '>', 0.00);
$query_total_lelongan->when(!empty($this->startDate) and !empty($this->endDate), function ($q) {
return $q->where('lelong.t_lelong', '>=', $this->startDate)