Model
InvoiceOrder
Magento\Sales\Model\Order\Validation\InvoiceOrder
What it does
This class validates whether an order can be invoiced and whether the invoice being created is valid.
Developers use this validator before creating an invoice to ensure the order is in the correct state and the invoice quantities are valid.
It combines multiple validation checks including invoice quantity validation and order invoicing capability validation.
Public Methods
- validate()