An Invoice line (BG-25) shall have an Invoiced quantity unit of measure code (BT-130).
The unitCode attribute is missing from ram:BilledQuantity. The unit of measure for the invoiced quantity is therefore not provided.
BT-130 states the unit of measure for the invoiced quantity. This associates the quantity with a unit.
The unit for the invoiced quantity is missing. You can add it to the quantity value on the invoice line.
- Add the
unitCodeattribute to theram:BilledQuantityelement. - Check the value of
TradeLineItem.UnitCode. - Generate the invoice again and validate it.
<ram:IncludedSupplyChainTradeLineItem> <ram:SpecifiedLineTradeDelivery> <ram:BilledQuantity>1</ram:BilledQuantity> </ram:SpecifiedLineTradeDelivery> </ram:IncludedSupplyChainTradeLineItem>
<ram:IncludedSupplyChainTradeLineItem> <ram:SpecifiedLineTradeDelivery> <ram:BilledQuantity unitCode="C62">1</ram:BilledQuantity> </ram:SpecifiedLineTradeDelivery> </ram:IncludedSupplyChainTradeLineItem>
TradeLineItem.UnitCode(BT-130)
Technical details
The test checks whether the unitCode attribute is present on ram:BilledQuantity.
Applies to the unitCode attribute of ram:BilledQuantity in each invoice line ram:IncludedSupplyChainTradeLineItem.
rule/@context)assert/@test)