/** * Calculate item tax with customized rounding level * * @param QuoteDetailsItem $item * @param Calculation\AbstractCalculator $calculator * @return TaxDetailsItem */ protected function processItem(QuoteDetailsItem $item, Calculation\AbstractCalculator $calculator) { $quantity = $this->getTotalQuantity($item); return $calculator->calculate($item, $quantity); }
/** * Calculate item tax with customized rounding level * * @param QuoteDetailsItemInterface $item * @param AbstractCalculator $calculator * @param bool $round * @return TaxDetailsItemInterface */ protected function processItem(QuoteDetailsItemInterface $item, AbstractCalculator $calculator, $round = true) { $quantity = $this->getTotalQuantity($item); return $calculator->calculate($item, $quantity, $round); }