diff --git a/app/Services/Reports/ImbangDugaService.php b/app/Services/Reports/ImbangDugaService.php index 13e2e4d..9373c42 100644 --- a/app/Services/Reports/ImbangDugaService.php +++ b/app/Services/Reports/ImbangDugaService.php @@ -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);