本文整理汇总了PHP中Magento\Sales\Model\Order\Item::getBaseDiscountAmount方法的典型用法代码示例。如果您正苦于以下问题:PHP Item::getBaseDiscountAmount方法的具体用法?PHP Item::getBaseDiscountAmount怎么用?PHP Item::getBaseDiscountAmount使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Magento\Sales\Model\Order\Item
的用法示例。
在下文中一共展示了Item::getBaseDiscountAmount方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getBaseTotalAmount
/**
* 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;
}
示例2: getItemFinalPriceInclTax
/**
* 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();
}
示例3: getBaseTotalAmount
/**
* 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;
}
示例4: getBaseTotalAmount
/**
* 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;
}
示例5: getBaseTotalAmount
/**
* 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;
}