fix report about GC not responding without chunk and for currentProfit check for year too not only for month

This commit is contained in:
hafifierahman
2025-02-24 21:28:25 +08:00
parent 956d66182a
commit 004130db85
3 changed files with 70 additions and 7 deletions
+1 -1
View File
@@ -398,7 +398,7 @@ class OnePercentService
$t_gadai = Carbon::parse($gadai->t_gadai);
$t_bayaran = Carbon::parse($trans->tarikh_bayaran);
if ($t_gadai->month === $t_bayaran->month) {
if ($t_gadai->month === $t_bayaran->month && $t_gadai->year === $t_bayaran->year) {
return false;
}else{
return true;