fatalPeppol BIS Billing 3.0profileCIIUBL
Item net price MUST equal (Gross price - Allowance amount) when gross price is provided.
The item net price (BT-146) does not equal the gross price (BT-148) minus the item price discount (BT-147).
Set BT-146 = BT-148 - BT-147. If there is no discount, either omit the gross price or make it equal to the net price.
CII — context —
not(ram:ChargeAmount) or xs:decimal(../ram:NetPriceProductTradePrice/ram:ChargeAmount) = xs:decimal(ram:ChargeAmount) - u:decimalOrZero(ram:AppliedTradeAllowanceCharge/ram:ActualAmount[1])
UBL — context —
not(cbc:BaseAmount) or xs:decimal(../cbc:PriceAmount) = xs:decimal(cbc:BaseAmount) - xs:decimal(cbc:Amount)