[-] Core: Fix products duplication when using multiple taxe rule on the same country

This commit is contained in:
rGaillard
2012-11-16 16:08:21 +00:00
parent eac368cf10
commit b9289df687
9 changed files with 60 additions and 106 deletions
+11
View File
@@ -116,6 +116,17 @@ class TaxCalculatorCore
return (float)$taxes;
}
public function getTaxesName()
{
$name = '';
foreach ($this->taxes as $tax)
$name .= $tax->name[(int)Context::getContext()->language->id].' - ';
$name = rtrim($name, ' - ');
return $name;
}
/**
* Return the tax amount associated to each taxes of the TaxCalculator