fix year to get last year only

This commit is contained in:
Hafifie PKB
2024-08-20 08:03:35 +08:00
parent 906a2b78c2
commit 261024b8ea
+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);