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: handle zero salvage value case #44690

Merged
merged 2 commits into from
Dec 13, 2024

Conversation

khushi8112
Copy link
Member

This update resolves a scenario where a zero salvage value incorrectly sets the depreciation rate to 100%. The logic has been adjusted to retain the previous depreciation rate when the salvage value is zero.
Also set the rate of depreciation as a mandatory field when the depreciation method is "Written Down Value".

@github-actions github-actions bot added the needs-tests This PR needs automated unit-tests. label Dec 13, 2024
@khushi8112 khushi8112 added backport version-15-hotfix and removed needs-tests This PR needs automated unit-tests. labels Dec 13, 2024
@khushi8112 khushi8112 merged commit d8f5592 into frappe:develop Dec 13, 2024
14 checks passed
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