The Item gross price (BT-148) shall NOT be negative.
If ram:GrossPriceProductTradePrice/ram:ChargeAmount is provided, its value is less than zero. A negative gross price is not allowed.
BT-148 is the item gross price. The rule requires a provided gross price to be zero or positive; this test allows the gross price to be omitted.
The gross price provided for an invoice line is negative. This rule also allows the gross price to be omitted, but if provided it must be zero or positive.
- Check the value of
ram:ChargeAmountin the invoice line’s gross price. - Check the value of
TradeLineItem.GrossUnitPrice. - Generate the invoice again and validate it.
<ram:IncludedSupplyChainTradeLineItem> <ram:SpecifiedLineTradeAgreement> <ram:GrossPriceProductTradePrice> <ram:ChargeAmount>-1.00</ram:ChargeAmount> </ram:GrossPriceProductTradePrice> </ram:SpecifiedLineTradeAgreement> </ram:IncludedSupplyChainTradeLineItem>
<ram:IncludedSupplyChainTradeLineItem> <ram:SpecifiedLineTradeAgreement/> </ram:IncludedSupplyChainTradeLineItem>
TradeLineItem.GrossUnitPrice(BT-148)
Technical details
The test passes if ram:ChargeAmount in the gross price is at least zero or if that element is absent.
Applies to ram:ChargeAmount in the gross price ram:GrossPriceProductTradePrice of each invoice line ram:IncludedSupplyChainTradeLineItem.
rule/@context)assert/@test)