Merged in hotfix/lejeram (pull request #207)
fix year to get last year only
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user