瀏覽代碼

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…
取消
儲存