from server date 2025-01-14

This commit is contained in:
Hafifie PKB
2025-01-14 22:54:48 +08:00
parent 09af89a249
commit 1aee7390a6
10 changed files with 69 additions and 23 deletions
+3 -1
View File
@@ -302,7 +302,9 @@ class OnePercentService
$ujrah_current = $result_audit_current->sum('ujrah');
}
/* B */
$result_audit_previous = $this->StokAuditGenerateTerakru($month_sebelum,$cawangan,$year_generate);
$year_sebelum = $date_sebelum->format('Y');
$year_publish = ($month_sekarang == 1) ? $year_sebelum : $year_generate;
$result_audit_previous = $this->StokAuditGenerateTerakru($month_sebelum,$cawangan,$year_publish);
$onepercent_previous = $result_audit_previous->sum('utgonepercent');
$ujrah_previous = $result_audit_previous->sum('ujrah');