We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5992172 commit 7879d82Copy full SHA for 7879d82
hrms/payroll/doctype/salary_slip/salary_slip.py
@@ -1770,6 +1770,9 @@ def get_future_recurring_period(
1770
1771
future_recurring_period = ((to_date.year - from_date.year) * 12) + (to_date.month - from_date.month)
1772
1773
+ if future_recurring_period > 0 and to_date.month == from_date.month:
1774
+ future_recurring_period -= 1
1775
+
1776
return future_recurring_period
1777
1778
def get_future_recurring_additional_amount(self, additional_salary, monthly_additional_amount):
0 commit comments