ReceiptAdviceLine type
One announced line of a receipt advice.
Fields
id
The line's MAX id.
lineNo
Int!
The line's number within the advice.
variantId
The MAX id of the product variant. Null on a DRAFT line that is not matched yet, and on an
item line (itemId set) of any status.
itemId
The MAX id of the product that an item line expects, in any of its variants. Null on a variant line.
supplierSku
String
The supplier's own code of the product.
quantity
The quantity as announced, in unit.
unit
String!
The unit code of quantity.
unitFactor
How many base units one unit held when the line was written.
baseQuantity
The announced quantity in base units: quantity times unitFactor.
unitPrice
The price per unit, in the advice's currency, with or without VAT as the advice's
pricesIncludeVat says.
vatPercent
The VAT rate in percent.
expectedAt
When the line's goods are due.
batchCode
String
The batch that the supplier's paperwork names.
expiresAt
The expiry that the paperwork names, as a UTC date.
serialNumber
String
The serial number that the paperwork names.
settlement
What a user in MAX decided about the line's difference. Null while nothing is decided.
received
What arrived on open and completed receipts, in base units. MAX reads it only when you select it.
remaining
What is still announced, in base units: baseQuantity less received, never below 0.
inProgress
What is on draft receipts, in base units: scanned on a handheld or typed in MAX, on its way in but not yet received.
receiptStatus
ReceiptAdviceLineReceiptStatus!
Where the line stands: what arrived against it, judged by the organisation's receipt tolerance.
receiptLines
Arguments:
first:Intafter:Stringlast:Intbefore:String
The receipt lines that answered this line, on receipts that are not drafts, oldest first.
- A connection, paged with
first/afterorlast/before, at most 250 a page. - Also requires the
receipt.readpermission. Without it, null withFORBIDDEN_ROLEat its path. - Null, with an error at its path, when its page cannot be read, for example because of a cursor of another parent. The rest of the response is returned.
- A page costs 2 + first (or last) × the cost of one node.