This commit is contained in:
eslamabady 2024-09-11 10:29:07 +03:00
parent 5874c85e32
commit 35308f77a8
1 changed files with 4 additions and 4 deletions

View File

@ -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[