8.4.3 Create an Invoice, Preview Discount, and Apply Payment
Create a sales invoice directly or from a quote. Run discount preview before finalizing discretionary pricing. Run the credit pre-commit check when payment risk matters. Post or finalize the invoice, then record payment.