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.
A normal invoice line is missing ram:BilledQuantity in ram:SpecifiedLineTradeDelivery. This element contains the invoiced quantity of goods or services for that line.
The invoiced quantity is required for a normal invoice line. It states the quantity of goods or services charged on that line.
The invoiced quantity is missing from this normal invoice line. Add the quantity so that the billed amount of goods or services is stated.
- Determine the invoiced quantity of goods or services for this invoice line.
- Set
TradeLineItem.BilledQuantity. - Generate the invoice again and validate it.
<ram:IncludedSupplyChainTradeLineItem> <ram:AssociatedDocumentLineDocument> <ram:LineStatusReasonCode>DETAIL</ram:LineStatusReasonCode> </ram:AssociatedDocumentLineDocument> <ram:SpecifiedLineTradeDelivery/> </ram:IncludedSupplyChainTradeLineItem>
<ram:IncludedSupplyChainTradeLineItem> <ram:AssociatedDocumentLineDocument> <ram:LineStatusReasonCode>DETAIL</ram:LineStatusReasonCode> </ram:AssociatedDocumentLineDocument> <ram:SpecifiedLineTradeDelivery> <ram:BilledQuantity>2</ram:BilledQuantity> </ram:SpecifiedLineTradeDelivery> </ram:IncludedSupplyChainTradeLineItem>
AssociatedDocument.LineStatusReasonCode(BT-X-8)LineStatusReasonCodes(BT-X-8)TradeLineItem.BilledQuantity(BT-129)
Technical details
The test requires ram:SpecifiedLineTradeDelivery/ram:BilledQuantity to exist. It applies only to ram:AssociatedDocumentLineDocument without ram:LineStatusReasonCode or with the value DETAIL.
The rule applies to ram:AssociatedDocumentLineDocument when ram:LineStatusReasonCode is absent or has the value DETAIL.
rule/@context)assert/@test)