/** * Return the total amount minus discount * * @param OrderItem|InvoiceItem|CreditMemoItem $item * @return mixed */ public function getTotalAmount($item) { $totalAmount = $item->getRowTotal() - $item->getDiscountAmount() + $item->getTaxAmount() + $item->getHiddenTaxAmount() + $this->weeeHelper->getRowWeeeTaxInclTax($item); return $totalAmount; }