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: added precision validation #43979

Merged

Conversation

khushi8112
Copy link
Member

Problem:
This fix addresses an issue where row.expected_value_after_useful_life was triggering a condition due to minor decimal differences, even when the values should logically be considered equal. Since row.expected_value_after_useful_life is not adjusted for precision.

Solution:
To resolve this, we will apply consistent precision to row.expected_value_after_useful_life and asset_value_after_full_schedule before performing the comparison.

@github-actions github-actions bot added the needs-tests This PR needs automated unit-tests. label Nov 5, 2024
@khushi8112 khushi8112 added backport version-15-hotfix and removed needs-tests This PR needs automated unit-tests. labels Nov 5, 2024
@khushi8112 khushi8112 merged commit f5a8e72 into frappe:develop Nov 5, 2024
14 checks passed
khushi8112 added a commit that referenced this pull request Nov 5, 2024
…-43979

fix: added precision validation (backport #43979)
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