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: In customer order when changing VAT for all items the change is not executed if VAT = 0% #16487

Closed
wants to merge 2 commits into from

Conversation

dvdwalker
Copy link
Contributor

In customer order when changing VAT for all items it runs OK for any VAT except VAT= 0%. In that case the change is not executed.

The reason the updated is not executed is realted to an IF clause that evaluates the value of input "vatforalllines" that contains the numerical value for new VAT. When VAT is 0% this is interpreted as FALSE so the update is not fired.

There are 3 conditions on the mentioned IF clause:
$action == 'addline' && GETPOST('submitforalllines', 'alpha') && GETPOST('vatforalllines', 'alpha')

If fix #16485 (related to same portion of the code) is applied then "submitforalllines" would only exist when chaging VAT for all items and will allow to remove GETPOST('vatforalllines', 'alpha') from the IF clause.

FIX to #16486

eldy added a commit that referenced this pull request Feb 28, 2021
@eldy eldy closed this Feb 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants