InvoiceQuantityValidator
Magento\Sales\Model\Order\InvoiceQuantityValidator
What it does
This validator ensures that invoice quantities are valid before an invoice is created.
It checks that the invoice is associated with an order, that invoice quantities don't exceed available uninvoiced quantities for each product, and that the invoice contains at least one product from the original order.
Developers use this during the invoice creation process to prevent invalid invoices from being saved.
Public Methods
- validate()