Model
Invoice
Magento\Sales\Model\ResourceModel\Order\Invoice
What it does
This resource model handles database operations for order invoices in Magento 2.
Developers use this class to save, load, and query invoice data from the sales_invoice table, including calculating refunded amounts from associated credit memos.
It automatically sets order and billing address relationships before saving invoice records.
Public Methods
- calculateRefundedAmount()