Base quantity MUST be a positive number above zero.
If ram:BasisQuantity is provided, its value must be greater than zero. A value of zero or a negative value does not pass the check.
The price base quantity states the quantity to which the product price relates. It must be positive so the price calculation has a valid reference quantity.
The provided ram:BasisQuantity is zero or less. You can resolve this by using a positive value for the price base quantity or omitting the element if it is not needed.
- Check
ram:BasisQuantityin the product’s net price or gross price. - Make sure the value is greater than zero, or omit the element if no price base quantity is to be stated.
- Generate the invoice again and validate it.
<ram:NetPriceProductTradePrice> <ram:BasisQuantity>0</ram:BasisQuantity> </ram:NetPriceProductTradePrice>
<ram:NetPriceProductTradePrice> <ram:BasisQuantity>1</ram:BasisQuantity> </ram:NetPriceProductTradePrice>
Technical details
The test permits ram:BasisQuantity to be absent. If present, its value is cast to xs:decimal and checked to be greater than zero.
The rule applies to ram:BasisQuantity in ram:NetPriceProductTradePrice or ram:GrossPriceProductTradePrice.
rule/@context)assert/@test)