Example #1
0
 /**
  * Return the total amount minus discount
  *
  * @param OrderItem|InvoiceItem|CreditmemoItem $item
  * @return mixed
  */
 public function getBaseTotalAmount($item)
 {
     $totalAmount = $item->getBaseRowTotal() - $item->getBaseDiscountAmount() + $item->getBaseTaxAmount() + $item->getBaseHiddenTaxAmount();
     return $totalAmount;
 }
Example #2
0
 /**
  * Get the final price in base currency for an ordered item including
  * taxes as discounts.
  *
  * @param Item $item the item model.
  *
  * @return float
  */
 public function getItemFinalPriceInclTax(Item $item)
 {
     return $item->getPriceInclTax() - $item->getBaseDiscountAmount();
 }
 /**
  * Calculate base total amount for the item
  *
  * @param QuoteItem|Item|InvoiceItem|CreditmemoItem $item
  * @return mixed
  */
 public function getBaseTotalAmount($item)
 {
     $baseTotalAmount = $item->getBaseRowTotal() - $item->getBaseDiscountAmount();
     return $baseTotalAmount;
 }
Example #4
0
 /**
  * Return the total amount minus discount
  *
  * @param OrderItem|InvoiceItem|CreditMemoItem $item
  * @return mixed
  */
 public function getBaseTotalAmount($item)
 {
     $totalAmount = $item->getBaseRowTotal() - $item->getBaseDiscountAmount() + $item->getBaseTaxAmount() + $item->getBaseHiddenTaxAmount() + $this->weeeHelper->getBaseRowWeeeTaxInclTax($item);
     return $totalAmount;
 }
Example #5
0
 /**
  * Return the total amount minus discount
  *
  * @param OrderItem|InvoiceItem|CreditmemoItem $item
  * @return mixed
  */
 public function getBaseTotalAmount($item)
 {
     $totalAmount = $item->getBaseRowTotal() - $item->getBaseDiscountAmount() + $item->getBaseTaxAmount() + $item->getBaseDiscountTaxCompensationAmount();
     return $totalAmount;
 }