fix rounding in taxcest
This commit is contained in:
parent
c13ae36494
commit
dbb17a93e3
|
|
@ -73,10 +73,10 @@ class TaxCest
|
||||||
'object' => Cart::getCart(),
|
'object' => Cart::getCart(),
|
||||||
'expectedTaxRates' => [
|
'expectedTaxRates' => [
|
||||||
(string)round((float)$tax1->tax_rate, 4)
|
(string)round((float)$tax1->tax_rate, 4)
|
||||||
=> round(11 * $product1->price * $tax1->tax_rate / 100, 4),
|
=> round(11 * $product1->price * $tax1->tax_rate / 100, 2),
|
||||||
|
|
||||||
(string)round((float)$tax2->tax_rate, 4)
|
(string)round((float)$tax2->tax_rate, 4)
|
||||||
=> round(7 * $product2->price * $tax2->tax_rate / 100, 4),
|
=> round(7 * $product2->price * $tax2->tax_rate / 100, 2),
|
||||||
],
|
],
|
||||||
'expectedTaxTotal' =>
|
'expectedTaxTotal' =>
|
||||||
round(
|
round(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue