Exemplo n.º 1
0
 /**
  * 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();
     return $totalAmount;
 }
Exemplo n.º 2
0
 /**
  * Return the total amount minus discount
  *
  * @param OrderItem|InvoiceItem|CreditmemoItem $item
  * @return mixed
  */
 public function getTotalAmount($item)
 {
     $totalAmount = $item->getRowTotal() + $item->getTaxAmount() + $item->getDiscountTaxCompensationAmount() + $item->getWeeeTaxAppliedRowAmount() - $item->getDiscountAmount();
     return $totalAmount;
 }