If BT-149 (Item price base quantity) is present in both GrossPriceProductTradePrice and NetPriceProductTradePrice, the values shall be identical. If BT-150 (unit of measure code) is present on the NetPrice path, it shall also be present on the GrossPrice path and be identical.
If BasisQuantity is present in both GrossPriceProductTradePrice and NetPriceProductTradePrice, the values differ. The rule also fails if NetPriceProductTradePrice/BasisQuantity has a unitCode while the corresponding gross-price BasisQuantity lacks that attribute or has a different value.
BT-149 is the item price base quantity; BT-150 is its unit of measure code. If these details do not agree between gross and net prices, the price basis is inconsistent.
The price base quantities or their units of measure differ between the gross and net prices. Make the checked details consistent in the invoice line.
- Check the values set through
TradeLineItem.GrossQuantityandTradeLineItem.NetQuantity. - Make
BasisQuantityinGrossPriceProductTradePriceandNetPriceProductTradePricematch when both are present. - If
BasisQuantity/@unitCodeis present for the net price, set the sameunitCodefor the gross price. - Generate the invoice again and validate it once more.
<ram:SpecifiedLineTradeAgreement> <ram:GrossPriceProductTradePrice> <ram:BasisQuantity unitCode="C62">1</ram:BasisQuantity> </ram:GrossPriceProductTradePrice> <ram:NetPriceProductTradePrice> <ram:BasisQuantity unitCode="HUR">2</ram:BasisQuantity> </ram:NetPriceProductTradePrice> </ram:SpecifiedLineTradeAgreement>
<ram:SpecifiedLineTradeAgreement> <ram:GrossPriceProductTradePrice> <ram:BasisQuantity unitCode="C62">1</ram:BasisQuantity> </ram:GrossPriceProductTradePrice> <ram:NetPriceProductTradePrice> <ram:BasisQuantity unitCode="C62">1</ram:BasisQuantity> </ram:NetPriceProductTradePrice> </ram:SpecifiedLineTradeAgreement>
TradeLineItem.GrossQuantity(BT-149-1)TradeLineItem.NetQuantity(BT-149)
Technical details
The test permits differing BasisQuantity values only when both paths do not contain a quantity. If unitCode is present on the net price base quantity, the test requires the attribute on the gross price base quantity as well and compares the values.
The rule applies to each IncludedSupplyChainTradeLineItem and compares the price base quantity and, where present, the unit of measure code in GrossPriceProductTradePrice and NetPriceProductTradePrice.
rule/@context)assert/@test)