[-] Classes : fixed bug #PSCFV-3260 - Bug when add product to existing order
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16567 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -438,7 +438,12 @@ class OrderDetailCore extends ObjectModel
|
||||
$price = Tools::convertPrice($this->specificPrice['reduction'], $order->id_currency);
|
||||
$this->reduction_amount = (float)(!$this->specificPrice['id_currency'] ?
|
||||
$price : $this->specificPrice['reduction']);
|
||||
$this->reduction_amount_tax_incl = $this->reduction_amount;
|
||||
|
||||
$id_tax_rules = (int)Product::getIdTaxRulesGroupByIdProduct((int)$this->specificPrice['id_product']);
|
||||
$tax_manager = TaxManagerFactory::getManager($this->vat_address, $id_tax_rules);
|
||||
$this->tax_calculator = $tax_manager->getTaxCalculator();
|
||||
|
||||
$this->reduction_amount_tax_incl = $this->reduction_amount;
|
||||
$this->reduction_amount_tax_excl = Tools::ps_round($this->tax_calculator->removeTaxes($this->reduction_amount_tax_incl), 2);
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user