SalesInvoiceLineItemInput
RequestA line of a sales invoice or credit note. Lines are sent as a whole list: a line with an id keeps that line, one without is new, and a line left out is removed. Order is the list's.
Sent in requests. Its values are closed: anything not listed is refused.
Attributes
13Quantity, up to 10 fraction digits. A negative quantity is a return and must name the invoice it returns against in credited_invoice_id (INVOICE_LINE_REFERENCE_REQUIRED); a price reduction keeps a positive quantity and a negative unit_price.
Net price per unit, up to 10 fraction digits. May be negative (a discount at the time of sale). A document totalling below zero is refused with INVOICE_TOTAL_NEGATIVE: it is a credit note.
An existing line of this document to keep; omit for a new line (INVOICE_LINE_NOT_FOUND otherwise).
Dimension values on the line, at most one per dimension.
The issued sales invoice this row corrects -- a return, or a price cut of an earlier sale (KMS § 29 lg 7). Required on a row with a negative quantity (INVOICE_LINE_REFERENCE_REQUIRED); one that names no issued invoice of this organization is CREDITED_INVOICE_INVALID.
The line's VAT as the document states it. Kept only on a historical create -- one that links its imported transaction_id, or is dated before the organization's opening date; the document's VAT is then these figures, not the ones its codes derive.
Details
On any other write it may only repeat the VAT the line derives (a read sent back), and is not stored; another figure is 400 VALIDATION_ERROR by pointer. A line with no VAT rate states none; the VAT sits on the line value's side of zero.