Преглед на файлове

OrderProductPriceSolver : gestion round

packProduct
Guillaume преди 2 години
родител
ревизия
4c53e17d81
променени са 1 файла, в които са добавени 5 реда и са изтрити 2 реда
  1. +5
    -2
      Solver/Price/OrderProductPriceSolver.php

+ 5
- 2
Solver/Price/OrderProductPriceSolver.php Целия файл

@@ -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…
Отказ
Запис