XV-GR-06

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

reverseDeliveryNote is accepted only for a delivery note (9.3), not a ….

Context
inv:invoiceHeader
Test
empty(inv:reverseDeliveryNote) or $type = '9.3'

Checked with myDATA 2.0.2

Message

reverseDeliveryNotePurpose gives the reason of a reverse delivery and is given with reverseDeliveryNote true.

Context
inv:invoiceHeader
Test
empty(inv:reverseDeliveryNotePurpose) or inv:reverseDeliveryNote = 'true'

Checked with myDATA 2.0.2