Skip to content

Bad tax calculation function #477

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

Closed
wants to merge 1 commit into from
Closed

Bad tax calculation function #477

wants to merge 1 commit into from

Conversation

centerax
Copy link
Contributor

On this file app/code/Magento/Catalog/view/adminhtml/catalog/product/js.phtml on line 73 I think there is an error when calculating the tax rate, this should read php spanValue = ' ' + formatCurrency((input.value/100)*rate, priceFormat); instead of php spanValue = ' ' + formatCurrency(input.value/(100+rate)*rate, priceFormat);

The problem is adding rate to 100(%).

This is present on current Magento EE 1.13 and Magento CE.

On this file app/code/Magento/Catalog/view/adminhtml/catalog/product/js.phtml on line 73 I think there is an error when calculating the tax rate, this should read ```php spanValue = ' ' + formatCurrency((input.value/100)*rate, priceFormat);``` instead of ```php spanValue = ' ' + formatCurrency(input.value/(100+rate)*rate, priceFormat);```

The problem is adding rate to 100(%).

This is present on current Magento EE 1.13 and Magento CE.
@verklov
Copy link
Contributor

verklov commented Jan 24, 2014

@centerax , thank you for your contribution! We will review your suggested code change and will let you know once we have the results.

@choukalos
Copy link

@centerax, thanks for the input. Looks like an issue - I've put a ticket in for the team to address in M2, plus a separate ticket to address in 1.x.

@centerax
Copy link
Contributor Author

Thanks for the update Chuck.

@choukalos
Copy link

Hi @centerax, my bad this does not appear to be an issue when coupled with our tax rate logic; turns out making this change breaks a number of our automated tax tests. I'm closing this as won't fix. Our current plan calls for ramping up a team in a couple months to start porting over 1.13.2 tax engine ( not released yet ) to M2.

@choukalos choukalos closed this Feb 28, 2014
magento-team pushed a commit that referenced this pull request Jul 17, 2015
MAGETWO-40183 Accept 9 Public Pull Requests
magento-team pushed a commit that referenced this pull request Mar 24, 2016
[South] Configurable Product Improvements
okorshenko pushed a commit that referenced this pull request Dec 14, 2016
Fixed issues:
 - MAGETWO-58320: Eliminate Slow Query for Media Gallery data
 - MAGETWO-59398: [Cloud] Custom theme does not use parent xml configuration on multi thread deployment
 - MAGETWO-59310: Static Assets deployment throws errors when redis is used for cache
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.

3 participants