From bc18e5d943af0c27d93f9da9ef05a396190cc131 Mon Sep 17 00:00:00 2001 From: Mahmoud Emad Date: Thu, 8 Feb 2024 12:39:03 +0200 Subject: [PATCH] Fix: Fix the vacation balance issue --- client/public/config.js | 2 +- client/src/components/personalInformation.vue | 1 - client/src/components/vacationBalance.vue | 2 +- client/src/views/ProfileView.vue | 49 ++++++++++--------- ...02_remove_vacation_actual_days_and_more.py | 31 ++++++++++++ server/cshr/models/vacations.py | 6 +-- server/cshr/serializers/vacations.py | 25 +++++----- server/cshr/services/vacations.py | 14 ------ server/cshr/utils/vacation_balance_helper.py | 43 ++++++++-------- server/cshr/views/vacations.py | 19 ------- 10 files changed, 91 insertions(+), 101 deletions(-) create mode 100644 server/cshr/migrations/0002_remove_vacation_actual_days_and_more.py diff --git a/client/public/config.js b/client/public/config.js index 7c28346d..7fc0182a 100644 --- a/client/public/config.js +++ b/client/public/config.js @@ -1,3 +1,3 @@ window.env = { - SERVER_DOMAIN_NAME_API: 'https://cshrserver.gent01.qa.grid.tf/api', // Added for testing, this is a staging API + SERVER_DOMAIN_NAME_API: 'http://127.0.0.1:8000/api', // Added for testing, this is a staging API }; \ No newline at end of file diff --git a/client/src/components/personalInformation.vue b/client/src/components/personalInformation.vue index f8560c55..2dbb1876 100644 --- a/client/src/components/personalInformation.vue +++ b/client/src/components/personalInformation.vue @@ -20,7 +20,6 @@