from server date 2025-01-14
This commit is contained in:
@@ -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');
|
||||
|
||||
|
||||
@@ -821,7 +821,8 @@ class RingkasanHarianService
|
||||
'011233' => '2021-06-28',
|
||||
];
|
||||
|
||||
return $tarikhTawarruq[Str::upper($this->kodCawangan)];
|
||||
$defaultDate = '2021-01-01';
|
||||
return $tarikhTawarruq[Str::upper($this->kodCawangan)] ?? $defaultDate;
|
||||
}
|
||||
|
||||
private function getOutstandingImbangDuga()
|
||||
|
||||
Reference in New Issue
Block a user