An Invoice line (BG-25) shall have an Invoiced quantity unit of measure code (BT-130) if the "Subtype of invoice line item" (BT-X-8) has the value "Normal line item (standard case)" (DETAIL) or is not specified.
The unitCode attribute is missing from BilledQuantity under SpecifiedLineTradeDelivery. This applies when LineStatusReasonCode is not specified or is DETAIL.
The unit of measure code states the unit in which the invoiced quantity is expressed. Without this code, the meaning of the quantity value is incomplete.
The unit for the invoiced quantity is missing from this invoice line. Add the unit code to the quantity.
- Check the status in
AssociatedDocumentLineDocument. - For a line with no status code or with
DETAIL, add the unit code usingTradeLineItem.UnitCode. - Regenerate the invoice and validate it again.
<ram:SpecifiedLineTradeDelivery> <ram:BilledQuantity>2</ram:BilledQuantity> </ram:SpecifiedLineTradeDelivery>
<ram:SpecifiedLineTradeDelivery> <ram:BilledQuantity unitCode="C62">2</ram:BilledQuantity> </ram:SpecifiedLineTradeDelivery>
AssociatedDocument.LineStatusReasonCode(BT-X-8)LineStatusReasonCodes(BT-X-8)TradeLineItem.UnitCode(BT-130)
Technical details
The test checks for the unitCode attribute on SpecifiedLineTradeDelivery/BilledQuantity for lines without a status code and for lines with DETAIL.
The rule applies to an IncludedSupplyChainTradeLineItem invoice line whose AssociatedDocumentLineDocument has no LineStatusReasonCode or has the value DETAIL.
rule/@context)assert/@test)