Ver código fonte

OrderProductPriceSolver : gestion round

packProduct
Guillaume 2 anos atrás
pai
commit
4c53e17d81
1 arquivos alterados com 5 adições e 2 exclusões
  1. +5
    -2
      Solver/Price/OrderProductPriceSolver.php

+ 5
- 2
Solver/Price/OrderProductPriceSolver.php Ver arquivo

@@ -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
);
}


Carregando…
Cancelar
Salvar