Log in
Model

Invoice

Magento\Sales\Model\ResourceModel\Order\Invoice

What it does

This resource model manages database operations for order invoices in Magento 2.

Developers use this class when they need to save, load, or perform calculations on invoice data, such as calculating the total refunded amount across all credit memos associated with a specific invoice.

It handles the connection between the invoice model and the sales_invoice database table.

Public Methods

  • calculateRefundedAmount()