This commit is contained in:
eslamabady 2024-09-10 12:24:17 +03:00
parent c7a7d0dab5
commit 73737b2ed9
1 changed files with 1 additions and 1 deletions

View File

@ -234,7 +234,7 @@ class LeaveController(http.Controller):
"date_to": body["end_date"],
"name": body["description"] if body.get("description") else "",
"holiday_status_id": int(body["type_id"]),
"delegate_acc": body["delegated_permission"],
"delegate_acc": False if body["delegated_permission"] in ("false","False",'') else True ,
# 'replace_by': int(body['replacement_id']) if body['replacement_id'] else False
}
if 'ticket' in body and body['ticket']: