level which determines which modification group is applied first. Furthermore, modification groups contain a basis attribute. The basis is used to calculate absolute values for relative modifications, e.g. a relative modification of 10% on a basis of 500€ would result in a 50€ modification.
Modifications on item-level are applied to the subtotal (quantity * unitPrice) of the item. Document-level modifications are on the other hand applied to the subtotalAmount of the invoice.
Rules
- Per line item, one or more modifications can be added
- Per invoice, one or more modifications can be added
- No modification group should have the same
levelattribute, unless they are on different items or on the document - It is only necessary to send taxes on modifications for absolute charges
- An invoice or credit note can leave out
itemsor send an emptyitemsarray, e.g. when it only has document-level charges. Some receivers can still require at least one line item.
- Discounts: no tax info (will be distributed evenly on all line-items). Example: Credit, Coupon, etc.
- Surcharge: needs tax info (because comparable to an independent line-item). Example: shipping costs, minimum quantity surcharge, packaging surcharge, etc.
Examples
Single charge on document-level
An invoice with an additional 5€ (net) shipping charge on document-level.Multiple modifications on item- and document-level
A more complex scenario with one modification on item-level and two modifications on document-level.quantity * unitPrice) of the item, the subtotalAmount of the invoice is 4.500€. Next, the document-level modifications are applied. For the modification with level = 1, we apply the charge to the subtotalAmount of the invoice. Thus, the subtotal (without taxes) is 4.500€+50€ after applying the first modification. Finally, we apply the second modification (level = 2) to the new subtotal and end up with an invoice netAmount of 4.095€.