[FIX] LEAVE: Fixed decimal leave rounding in update of leave type
This commit is contained in:
@@ -253,7 +253,6 @@ class UpdateLeaveTypeForm(ConditionForm):
|
||||
cleaned_data = super().clean()
|
||||
if "exceed_days" in self.errors:
|
||||
del self.errors["exceed_days"]
|
||||
cleaned_data["count"] = round(cleaned_data["count"] * 2) / 2
|
||||
if not cleaned_data["limit_leave"]:
|
||||
cleaned_data["total_days"] = LEAVE_MAX_LIMIT
|
||||
cleaned_data["reset"] = True
|
||||
|
||||
Reference in New Issue
Block a user