Item
Magento\Sales\Model\Order\Creditmemo\Item
What it does
This class represents an individual line item within a credit memo (refund) in Magento 2.
Developers use this model to access and manipulate credit memo item data such as quantities, prices, taxes, and discounts when processing refunds.
It handles calculations for refund amounts, updates the associated order item's refunded quantities, and manages the relationship between credit memo items and their parent credit memo and order items.
Public Methods
- setCreditmemo()
- getCreditmemo()
- setOrderItem()
- getOrderItem()
- setQty()
- register()
- cancel()
- calcRowTotal()
- isLast()
- getAdditionalData()
- getBaseCost()
- getBaseDiscountAmount()
- getBaseDiscountTaxCompensationAmount()
- getBasePrice()
- getBasePriceInclTax()
- getBaseRowTotal()
- getBaseRowTotalInclTax()
- getBaseTaxAmount()
- getBaseWeeeTaxAppliedAmount()
- getBaseWeeeTaxAppliedRowAmnt()
- getBaseWeeeTaxDisposition()
- getBaseWeeeTaxRowDisposition()
- getDescription()
- getDiscountAmount()
- getDiscountTaxCompensationAmount()
- getName()
- getOrderItemId()
- getParentId()
- getPrice()
- getPriceInclTax()
- getProductId()
- getQty()
- getRowTotal()
- getRowTotalInclTax()
- getSku()
- getTaxAmount()
- getWeeeTaxApplied()
- getWeeeTaxAppliedAmount()
- getWeeeTaxAppliedRowAmount()
- getWeeeTaxDisposition()
- getWeeeTaxRowDisposition()
- setParentId()
- setBasePrice()
- setTaxAmount()
- setBaseRowTotal()
- setDiscountAmount()
- setRowTotal()
- setBaseDiscountAmount()
- setPriceInclTax()
- setBaseTaxAmount()
- setBasePriceInclTax()
- setBaseCost()
- setPrice()
- setBaseRowTotalInclTax()
- setRowTotalInclTax()
- setProductId()
- setOrderItemId()
- setAdditionalData()
- setDescription()
- setSku()
- setName()
- setDiscountTaxCompensationAmount()
- setBaseDiscountTaxCompensationAmount()
- setWeeeTaxDisposition()
- setWeeeTaxRowDisposition()
- setBaseWeeeTaxDisposition()
- setBaseWeeeTaxRowDisposition()
- setWeeeTaxApplied()
- setBaseWeeeTaxAppliedAmount()
- setBaseWeeeTaxAppliedRowAmnt()
- setWeeeTaxAppliedAmount()
- setWeeeTaxAppliedRowAmount()
- getExtensionAttributes()
- setExtensionAttributes()