Model
InvoiceOrder
Magento\Sales\Model\Order\Validation\InvoiceOrder
What it does
This class validates whether an order can be invoiced by checking both the invoice data and order state.
Developers use this class when creating invoices programmatically to ensure the order is in a valid state for invoicing and that the invoice quantities are correct.
It combines multiple validation rules including quantity validation and whether the order can be invoiced.
Public Methods
- validate()