Skip to content
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(Payroll): multiline condition & formula eval failing #2138

Merged
merged 3 commits into from
Aug 31, 2024

Conversation

ruchamahabal
Copy link
Member

Problem

Regression #2088
Multiline condition & formula eval failing because the last update tries to parse dependent component formulas without the sanitized expression.

Multiline formula:
image

image

Fix

Sanitize condition & formula fields in salary structure doc reference to avoid accidental references to unsanitized fields across functions

image

Fix in salary structure: Multiline formula updates error out on submitted doc because sanitization was only done on before_validate. Sanitize expression fields on before_update_after_submit too

- sanitize condition & formula fields in structure doc reference to avoid accidental reference to unsanitized fields across functions

regression: frappe#2088
…fter_submit` too

- multiline formula updates error out on submitted doc because sanitization was only done on `before_validate`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant