Pārlūkot izejas kodu

OrderProductPriceSolver : gestion round

packProduct
Guillaume pirms 2 gadiem
vecāks
revīzija
4c53e17d81
1 mainītis faili ar 5 papildinājumiem un 2 dzēšanām
  1. +5
    -2
      Solver/Price/OrderProductPriceSolver.php

+ 5
- 2
Solver/Price/OrderProductPriceSolver.php Parādīt failu

@@ -123,13 +123,16 @@ class OrderProductPriceSolver
);
}

public function getTotalWithTaxAndReduction(OrderProductInterface $orderProduct)
public function getTotalWithTaxAndReduction(OrderProductInterface $orderProduct, bool $round = true)
{
return $this->applyReductionCatalog(
$orderProduct,
$this->getTotal($orderProduct),
$this->getTotalWithTax($orderProduct),
$orderProduct->getQuantityOrder()
$orderProduct->getQuantityOrder(),
null,
true,
$round
);
}


Notiek ielāde…
Atcelt
Saglabāt