We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent daaf601 commit 0f4e127Copy full SHA for 0f4e127
hrms/payroll/doctype/gratuity/gratuity.py
@@ -159,7 +159,7 @@ def get_work_experience(self) -> float:
159
if rule.method == "Round off Work Experience":
160
work_experience = round(work_experience)
161
else:
162
- work_experience = floor(work_experience)
+ work_experience = flt(work_experience, precision=1)
163
164
if work_experience < rule.minimum_year_for_gratuity:
165
frappe.throw(
0 commit comments