Log in
Model

ItemDetails

Magento\Tax\Model\TaxDetails\ItemDetails

What it does

This class represents detailed tax information for individual items (products, shipping, etc.) in a quote or order.

Developers use it to retrieve and set tax-related data like prices with/without tax, tax percentages, row totals, discount amounts, and applied taxes.

It's commonly used in tax calculations, order totals display, and when building custom invoices or reports that need item-level tax breakdowns.

Public Methods

  • getCode()
  • getType()
  • getTaxPercent()
  • getPrice()
  • getPriceInclTax()
  • getRowTotal()
  • getRowTotalInclTax()
  • getRowTax()
  • getTaxableAmount()
  • getDiscountAmount()
  • getDiscountTaxCompensationAmount()
  • getAppliedTaxes()
  • getAssociatedItemCode()
  • setCode()
  • setType()
  • setTaxPercent()
  • setPrice()
  • setPriceInclTax()
  • setRowTotal()
  • setRowTotalInclTax()
  • setRowTax()
  • setTaxableAmount()
  • setDiscountAmount()
  • setDiscountTaxCompensationAmount()
  • setAppliedTaxes()
  • setAssociatedItemCode()
  • getExtensionAttributes()
  • setExtensionAttributes()