When creating an invoice, you can refer to either a sales order or a delivery. You can either bill all items, or select certain items or a certain quantity for billing.
The following graphic describes the different document flows involved in the creation of an invoice.