From f369b7030f83bc1dc248ecec1d8b44df3be1b71d Mon Sep 17 00:00:00 2001 From: fatmaebrahim Date: Sun, 24 May 2026 10:46:41 +0300 Subject: [PATCH] fix: fixed max excuse to 12 instead of 10 --- .../components/dashboard/SetUserVacationBalance.vue | 10 +++++----- client/src/utils/add_update_user_form.ts | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/client/src/components/dashboard/SetUserVacationBalance.vue b/client/src/components/dashboard/SetUserVacationBalance.vue index 39b11573..2a419dd0 100644 --- a/client/src/components/dashboard/SetUserVacationBalance.vue +++ b/client/src/components/dashboard/SetUserVacationBalance.vue @@ -177,7 +177,7 @@ export default { const defaultBalanceValues = [ { key: 'annual', label: 'Annual', value: 30 }, { key: 'emergency', label: 'Emergency', value: 10 }, - { key: 'excuse', label: 'Excuse', value: 10 }, + { key: 'excuse', label: 'Excuse', value: 12 }, { key: 'compensation', label: 'Compensation', value: 30 }, { key: 'paternity', label: 'Paternity', value: 30 }, { key: 'maternity', label: 'Maternity', value: 30 }, @@ -215,8 +215,8 @@ export default { { label: 'Leave excuse', key: 'excuse', - value: 6, - validationRules: getBalanceRules('excuse', 10) + value: 12, + validationRules: getBalanceRules('excuse', 12) }, { label: 'Compensation', @@ -256,8 +256,8 @@ export default { { label: 'Leave excuse', key: 'excuse', - value: 6, - validationRules: getBalanceRules('excuse', 10) + value: 12, + validationRules: getBalanceRules('excuse', 12) }, { label: 'Compensation', diff --git a/client/src/utils/add_update_user_form.ts b/client/src/utils/add_update_user_form.ts index c747469d..23e41422 100644 --- a/client/src/utils/add_update_user_form.ts +++ b/client/src/utils/add_update_user_form.ts @@ -67,9 +67,9 @@ export const userBalance = ref([ { label: 'Excuse', key: 'excuse', - value: 6, + value: 12, type: 'number', - rules: getBalanceRules('excuse', 10), + rules: getBalanceRules('excuse', 12), isLoading: false, disabled: false, },