Log in
Model

Item

Magento\Sales\Model\Order\Creditmemo\Item

What it does

This class represents a single line item within a Magento 2 credit memo (refund).

Developers use this model when creating or processing credit memos to manage individual product refunds, including quantities, prices, taxes, and discounts.

It handles the calculation of refund amounts and updates the corresponding order item's refunded quantities and amounts.

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()