The Item standard identifier (BT-157) shall have a Scheme identifier.
If GlobalID is provided, its non-empty schemeID attribute is missing.
The scheme identifier specifies which identification scheme the item standard identifier belongs to.
A GlobalID is provided without its schemeID scheme identifier. Add the attribute to the item standard identifier.
- Check the item standard identifier in
TradeLineItem.GlobalID. - Add a non-empty
schemeIDattribute to the XML elementram:GlobalID. - Regenerate the invoice and validate it again.
<ram:SpecifiedTradeProduct> <ram:GlobalID>123</ram:GlobalID> </ram:SpecifiedTradeProduct>
<ram:SpecifiedTradeProduct> <ram:GlobalID schemeID="0160">123</ram:GlobalID> </ram:SpecifiedTradeProduct>
TradeLineItem.GlobalID(BT-157)
Technical details
The test passes if GlobalID/@schemeID is non-empty or if no GlobalID element is present.
The rule applies to the item standard identifier SpecifiedTradeProduct/GlobalID within an invoice line.
rule/@context)assert/@test)