Unit code of price base quantity MUST be same as invoiced quantity.
The unitCode of the price base quantity does not match the unitCode of the billed quantity. The two quantities therefore use different units.
The price base quantity and billed quantity must use the same unit so that the product price can be applied to the billed quantity consistently.
The price base quantity and the billed quantity on an invoice line use different units. Their unit codes must match so the price relates to the billed quantity correctly.
- Compare the
unitCodeattribute ofram:BasisQuantitywith theunitCodeattribute ofram:BilledQuantity. - Make sure both unit codes match.
- Generate the invoice again and validate it.
<ram:BasisQuantity unitCode="C62">1</ram:BasisQuantity> <ram:BilledQuantity unitCode="HUR">2</ram:BilledQuantity>
<ram:BasisQuantity unitCode="C62">1</ram:BasisQuantity> <ram:BilledQuantity unitCode="C62">2</ram:BilledQuantity>
Technical details
The XPath directly compares the current ram:BasisQuantity unitCode with the unitCode of ram:BilledQuantity in the associated invoice line.
The rule applies to the unitCode attribute of ram:BasisQuantity in a product’s net or gross price and compares it with the unitCode of the invoice line’s billed quantity.
rule/@context)assert/@test)