From 35308f77a8c665ab6b2be33bdcda1552ecfd7059 Mon Sep 17 00:00:00 2001 From: eslamabady Date: Wed, 11 Sep 2024 10:29:07 +0300 Subject: [PATCH] fix date --- .../odex_mobile/controllers/rest_api_v2/leave.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/odex25_mobile/odex_mobile/controllers/rest_api_v2/leave.py b/odex25_mobile/odex_mobile/controllers/rest_api_v2/leave.py index 3f6594b67..2511d367e 100644 --- a/odex25_mobile/odex_mobile/controllers/rest_api_v2/leave.py +++ b/odex25_mobile/odex_mobile/controllers/rest_api_v2/leave.py @@ -351,10 +351,10 @@ class LeaveController(http.Controller): 'holiday_status_id': int(body['type_id']), 'number_of_days_temp': days, 'delegate_acc': json.loads(body['delegated_permission']), } - # if approvel and 'replacement_id' in body: - # vals.update({ - # 'replace_by': False - # }) + if approvel and 'replacement_id' in body: + vals.update({ + 'replace_by': int(body['replacement_id']) + }) if 'ticket' in body and body['ticket']: vals.update({'issuing_clearance_form': body['issuing_clearance_form'], 'issuing_deliver_custdy': body[