Message

Item net price MUST equal (Gross price - Allowance amount) when gross price is provided.

Context
cac:Price/cac:AllowanceCharge
Test
not(cbc:BaseAmount) or xs:decimal(../cbc:PriceAmount) = xs:decimal(cbc:BaseAmount) - xs:decimal(cbc:Amount)
Usage
/ ubl:Invoice / cac:InvoiceLine / cac:Price / cbc:PriceAmount