FIX issue on action set condition in particular when you set a deposi… #31518
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
FIX|Fix # Change payment term from deposit to an other payment term
When creating a commercial proposal and setting an advance payment condition, and then wanting to change to a condition such as payment upon receipt, the item along with the proposal still displays the amount of the initial advance next to the new payment condition. Moreover, it was not set to zero during this change.
I have therefore modified it so that if the payment condition is an advance, it retains the current default behavior. However, if the payment method was initially set to an advance on the commercial proposal and then changed to another payment condition, the deposit percentage value is updated in the database so that it is not considered in the commercial proposal.