コード例 #1
0
ファイル: DefaultRenderer.php プロジェクト: nja78/magento2
 /**
  * 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;
 }
コード例 #2
0
ファイル: Renderer.php プロジェクト: shabbirvividads/magento2
 /**
  * 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;
 }
コード例 #3
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;
 }