The Item net price (BT-146) shall NOT be negative.
The value of ram:ChargeAmount in the invoice line’s net price is less than zero. A negative net price is not allowed by this rule.
BT-146 is the item net price. The rule requires this price to be zero or positive.
The net price on an invoice line is negative. This rule does not allow a value below zero for this price.
- Check the value of
ram:ChargeAmountin the invoice line’s net price. - Check the value of
TradeLineItem.NetUnitPrice. - Generate the invoice again and validate it.
<ram:IncludedSupplyChainTradeLineItem> <ram:SpecifiedLineTradeAgreement> <ram:NetPriceProductTradePrice> <ram:ChargeAmount>-1.00</ram:ChargeAmount> </ram:NetPriceProductTradePrice> </ram:SpecifiedLineTradeAgreement> </ram:IncludedSupplyChainTradeLineItem>
<ram:IncludedSupplyChainTradeLineItem> <ram:SpecifiedLineTradeAgreement> <ram:NetPriceProductTradePrice> <ram:ChargeAmount>0.00</ram:ChargeAmount> </ram:NetPriceProductTradePrice> </ram:SpecifiedLineTradeAgreement> </ram:IncludedSupplyChainTradeLineItem>
TradeLineItem.NetUnitPrice(BT-146)
Technical details
The test compares ram:ChargeAmount in the net price with zero and passes when the value is greater than or equal to zero.
Applies to ram:ChargeAmount in the net price ram:NetPriceProductTradePrice of each invoice line ram:IncludedSupplyChainTradeLineItem.
rule/@context)assert/@test)