fix
This commit is contained in:
@@ -31,7 +31,7 @@ class BudgetHelper
|
||||
|
||||
// Add the used budget per model for the specified month and year to the usedBudget array
|
||||
$users = UserHasCabang::where('cabang_id', $cabang_id)->get();
|
||||
$userIds = $users->pluck('user_id')->toArray();
|
||||
$userIds = $users->pluck('user_id')->toArray();
|
||||
$forms = FormHelper::getFormsByUserIds($userIds, $month, $year)->sortByDesc('tanggal')->sortByDesc('created_at');
|
||||
$usedBudget += $forms->sum('approved_total');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user