round items tax value instead or truncate by database field

This commit is contained in:
Steffen Mahler 2020-07-06 13:58:11 +02:00
parent ab4f3d62ac
commit 6d893dd6e0
1 changed files with 2 additions and 2 deletions

View File

@ -741,8 +741,8 @@ class Cart
if ($haveTaxRate) {
$item->tax_percent = $rate->tax_rate;
$item->tax_amount = ($item->total * $rate->tax_rate) / 100;
$item->base_tax_amount = ($item->base_total * $rate->tax_rate) / 100;
$item->tax_amount = round(($item->total * $rate->tax_rate) / 100, 4);
$item->base_tax_amount = round(($item->base_total * $rate->tax_rate) / 100, 4);
break;
}