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

This commit is contained in:
rGaillard committed 2012-11-16 16:08:21 +00:00
1 parent eac368cf10
commit b9289df687
9 files changed
+60 -106

No files matched your search

+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