AlmondTill/G3N API

EditReceiptInput

input type

Edit-input for a Receipt. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved. Draft-only wholesale (the family stance): caption + a full line replace + a full component replace while draft; the parent PO and the LF are birth-fixed (wrong LF = cancel + recreate — the Transfer pair precedent); a live post-draft doc refuses CONFLICT/REF_STATE naming the required draft state; a write in an immutable terminal (posted / cancelled) refuses CONFLICT/IMMUTABLE.

Fields

FieldTypeRequiredNotes
captionStringno
linesReceiptLineInput [ReceiptLineInput!]noThe wholesale line replacement (draft-only) — same shape and gates as create; the whole set, up to 1000.: it persists as a diff by the natural (poLineNo x disposition) key — an unchanged line costs no write, a kept line keeps its lineNo and createdAt, a new key mints at nextLineNo, an absent key deletes; a delta past 90 line actions refuses VALIDATION/INVALID naming the budget and the three line ops.
landedComponentsLandedCostComponentInput [LandedCostComponentInput!]noThe wholesale component replacement (draft-only); an empty array clears the estimates.

Used by