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

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


Loading…
Cancel
Save