Merged in hotfix/lejeram (pull request #207)

fix year to get last year only
This commit is contained in:
Muhd hafifie
2024-08-20 00:04:26 +00:00
+1 -1
View File
@@ -853,7 +853,7 @@ class ImbangDugaService
$reports = new ReportOne($this->kodcaw);
$previous_date = new Carbon($this->tarikh);
$previous_date->subMonth()->endOfMonth()->toDateString();
$previous_date->subYear()->endOfYear()->toDateString();
$onepercent = $reports->getTotalKeuntungan('B',$previous_date);
$ujrah = $reports->getTotalUjrah('B',$previous_date);