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(Quotation): calculate row values for alternative items #43054

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

barredterra
Copy link
Collaborator

@barredterra barredterra commented Sep 4, 2024

Introduced via: #33874

Problem

When marking a Quotation row as Is Alternative, the row is completely ignored in code. E.g. the row amount does not get updated, the tax template is not verified, the tax exclusive rate is no longer determined, etc.

This can easily result in a wrong quotation. For example, if the rate is edited after the row was marked as Is Alternative, the row amount is no longer correct.

Solution

Exclude alternative rows only when calculating total taxes and amounts for the entire Quotation. Individual row values should get updated as usual, for alternative items as well.


Internal ref: DEP-567

@github-actions github-actions bot added accounts needs-tests This PR needs automated unit-tests. labels Sep 4, 2024
@barredterra barredterra requested review from marination and removed request for rohitwaghchaure and deepeshgarg007 September 4, 2024 15:04
@barredterra barredterra added backport version-15-hotfix and removed needs-tests This PR needs automated unit-tests. labels Sep 4, 2024
@barredterra barredterra self-assigned this Sep 24, 2024
@barredterra barredterra added the needs-tests This PR needs automated unit-tests. label Sep 24, 2024
@barredterra barredterra removed the needs-tests This PR needs automated unit-tests. label Oct 2, 2024
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