Each invoice line item "INVOICE LINE" (BG-25) must contain the quantity of goods or services invoiced in the relevant line item as a line item "Invoiced quantity" (BT-129) if the "Subtype of invoice line item" (BT-X-8) has the value "Normal line item (standard case)" (DETAIL) or is not specified.
The invoice line is missing BilledQuantity under SpecifiedLineTradeDelivery. This applies when LineStatusReasonCode is not specified or is DETAIL.
The quantity states how many goods or services are invoiced on this invoice line. Without it, the invoiced quantity for the line is not provided.
The invoiced quantity is missing from this invoice line. You can resolve this by adding the quantity to the line.
- Check the status in
AssociatedDocumentLineDocument. - For a line with no status code or with
DETAIL, add the quantity usingTradeLineItem.BilledQuantity. - Regenerate the invoice and validate it again.
<ram:AssociatedDocumentLineDocument> <ram:LineStatusReasonCode>DETAIL</ram:LineStatusReasonCode> </ram:AssociatedDocumentLineDocument>
<ram:AssociatedDocumentLineDocument> <ram:LineStatusReasonCode>DETAIL</ram:LineStatusReasonCode> </ram:AssociatedDocumentLineDocument> <ram:SpecifiedLineTradeDelivery> <ram:BilledQuantity unitCode="C62">2</ram:BilledQuantity> </ram:SpecifiedLineTradeDelivery>
AssociatedDocument.LineStatusReasonCode(BT-X-8)LineStatusReasonCodes(BT-X-8)TradeLineItem.BilledQuantity(BT-129)
Technical details
The test requires SpecifiedLineTradeDelivery/BilledQuantity for lines without LineStatusReasonCode and for lines with the code DETAIL.
The rule applies to an IncludedSupplyChainTradeLineItem invoice line whose AssociatedDocumentLineDocument has no LineStatusReasonCode or has the value DETAIL.
rule/@context)assert/@test)