Model
Item
Magento\Sales\Model\Order\Invoice\Item
What it does
This class represents an individual line item within a Magento invoice.
Developers use it when creating, managing, or processing invoices to track product quantities, prices, taxes, and discounts for each item being invoiced from an order.
It handles calculations like row totals and maintains the relationship between invoice items and their corresponding order items.
Public Methods
- setInvoice()
- getInvoice()
- setOrderItem()
- getOrderItem()
- setQty()
- register()
- cancel()
- calcRowTotal()
- isLast()
- getAdditionalData()
- getBaseCost()
- getBaseDiscountAmount()
- getBaseDiscountTaxCompensationAmount()
- getBasePrice()
- getBasePriceInclTax()
- getBaseRowTotal()
- getBaseRowTotalInclTax()
- getBaseTaxAmount()
- getDescription()
- getDiscountAmount()
- getDiscountTaxCompensationAmount()
- getName()
- getOrderItemId()
- getParentId()
- getPrice()
- getPriceInclTax()
- getProductId()
- getQty()
- getRowTotal()
- getRowTotalInclTax()
- getSku()
- getTaxAmount()
- setParentId()
- setBasePrice()
- setTaxAmount()
- setBaseRowTotal()
- setDiscountAmount()
- setRowTotal()
- setBaseDiscountAmount()
- setPriceInclTax()
- setBaseTaxAmount()
- setBasePriceInclTax()
- setBaseCost()
- setPrice()
- setBaseRowTotalInclTax()
- setRowTotalInclTax()
- setProductId()
- setOrderItemId()
- setAdditionalData()
- setDescription()
- setSku()
- setName()
- setDiscountTaxCompensationAmount()
- setBaseDiscountTaxCompensationAmount()
- getExtensionAttributes()
- setExtensionAttributes()