-
-
Notifications
You must be signed in to change notification settings - Fork 123
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
[14.0][IMP] payroll: salary rule code: payslip.line_sum_where() #117
Conversation
Hi @appstogrow, @nimarosa, |
@norlinhenrik I deleted my previous comment since i misunderstood the functionality. To be clear, this sum only the rules in the "current" payslip, not previously computed rules from another payslips. I'm right? |
Yes, it sums only computed rules for the "current" payslip. |
@norlinhenrik If you can make some test of the new method so we maintain compatibility in future versiones will be great. After that, we merge. |
@nimarosa |
/ocabot rebase |
Congratulations, PR rebased to 14.0. |
/ocabot merge patch |
Hey, thanks for contributing! Proceeding to merge this for you. |
Congratulations, your PR was merged at 7e478e7. Thanks a lot for contributing to OCA. ❤️ |
payslip.line_sum_where() may be used in salary rule code.
It will sum the total of the previously computed rules where the given field has the given value.
total_seq_10 = payslip.line_sum_where("sequence", 10, rules, result_rules)
I have also improved the salary rule help text a little bit.