Browse Source

OrderProductPriceSolver : gestion round

packProduct
Guillaume 2 years ago
parent
commit
4c53e17d81
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      Solver/Price/OrderProductPriceSolver.php

+ 5
- 2
Solver/Price/OrderProductPriceSolver.php View File

); );
} }


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



Loading…
Cancel
Save