-
Notifications
You must be signed in to change notification settings - Fork 982
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Cannot create recurring Additional salary for new recurring period #2579
base: version-15-hotfix
Are you sure you want to change the base?
Conversation
- validate_duplicate_additional_salary
@ruchamahabal it would be great if you could give this PR a review whenever you get the chance. Thank you 🙂 |
} | ||
|
||
if self.is_recurring: | ||
filters["payroll_date"] = ["between", [self.from_date, self.to_date]] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should actually also check for the other case. If my current additional salary is not recurring but there is a recurring additional salary already existing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ruchamahabal I believe it is already covered in the method before this call. Are you referring to a different case?
self.validate_recurring_additional_salary_overlap() |
closes #2578