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