F-CRN203

The rule sets below word this rule differently; each wording is shown with its rule set.

error: the document is invalid

What the rule checks

As the rule set's publisher wrote it. The rule runs on every element the context matches, and fails where the test is false; the validator reports the line of that element.

Message

AllowanceCharge.Amount can not be negative, if CreditedQuantity or Price.PriceAmount is not negative.

Context
doc:CreditNote/cac:CreditNoteLine
Test
not($NegativeLEA or $NegativePA) and $NegativeAllowanceAmount

Checked with Denmark OIOUBL 2.1 Credit Note

Message

cbc:ID must contain a value.

Context
doc:CreditNote/cac:CreditNoteLine/cac:Item/cac:Certificate/cbc:ID
Test
normalize-space(.) != ''

Checked with Denmark OIOUBL 2.1 Credit Note