[-] Classes : fixed bug #PSCFV-3260 - Bug when add product to existing order
This commit is contained in:
1 parent
321cf45847
commit
c9a4158b96
1 file changed
+6
-1
@@ -438,7 +438,12 @@ class OrderDetailCore extends ObjectModel
|
|||||||
$price = Tools::convertPrice($this->specificPrice['reduction'], $order->id_currency);
|
$price = Tools::convertPrice($this->specificPrice['reduction'], $order->id_currency);
|
||||||
$this->reduction_amount = (float)(!$this->specificPrice['id_currency'] ?
|
$this->reduction_amount = (float)(!$this->specificPrice['id_currency'] ?
|
||||||
$price : $this->specificPrice['reduction']);
|
$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);
|
$this->reduction_amount_tax_excl = Tools::ps_round($this->tax_calculator->removeTaxes($this->reduction_amount_tax_incl), 2);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user