F-CRN203
The rule sets below word this rule differently; each wording is shown with its rule set.
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.
AllowanceCharge.Amount can not be negative, if CreditedQuantity or Price.PriceAmount is not negative.
doc:CreditNote/cac:CreditNoteLine
not($NegativeLEA or $NegativePA) and $NegativeAllowanceAmount
Checked with Denmark OIOUBL 2.1 Credit Note
cbc:ID must contain a value.
doc:CreditNote/cac:CreditNoteLine/cac:Item/cac:Certificate/cbc:ID
normalize-space(.) != ''
Checked with Denmark OIOUBL 2.1 Credit Note