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