Skip to content

Commit

Permalink
Fix tax rule based exchange rate calculation to always use list price
Browse files Browse the repository at this point in the history
  • Loading branch information
Hannu Pölönen committed Feb 2, 2017
1 parent 61d25b6 commit 2ef8ee3
Show file tree
Hide file tree
Showing 2 changed files with 107 additions and 43 deletions.
2 changes: 1 addition & 1 deletion classes/helpers/currency.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ public function getTaxRulesExchangeRateCollection(Context $context)

$tax_rule_countries = $this->getCountriesWithTaxRules($context_clone);
$rates_array = array();
$base_price = $helper_price->getProductPriceInclTax(
$base_price = $helper_price->getProductListPriceInclTax(
$product,
$context_clone,
$this->getBaseCurrency($context_clone)
Expand Down
148 changes: 106 additions & 42 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2ef8ee3

Please sign in to comment.