UBL-SR-25
Deliver to party name shall occur maximum once
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
cac:Delivery
not(cac:DeliveryParty) or count(cac:DeliveryParty/cac:PartyName/cbc:Name) = 1
Checked with EN 16931 Invoice (UBL), EN 16931 Credit Note (UBL), Croatia eRačun Invoice (UBL), Croatia eRačun Credit Note (UBL)
cac:Delivery
(count(cac:DeliveryParty/cac:PartyName/cbc:Name) <= 1)
Checked with Peppol BIS Billing 3.0 Invoice, Peppol BIS Billing 3.0 Credit Note, Peppol BIS Self-Billing 3.0 Invoice, Peppol BIS Self-Billing 3.0 Credit Note, France e-invoice (UBL), France e-credit note (UBL), Austria e-Rechnung.gv.at Peppol Invoice, Austria e-Rechnung.gv.at Peppol Credit Note, XRechnung 3.0 Invoice (UBL), XRechnung 3.0 Credit Note (UBL)
cac:Delivery
(count(cac:DeliveryParty/cac:PartyName/cbc:Name) <= 1)
Checked with Portugal CIUS-PT Invoice (UBL), Portugal CIUS-PT Credit Note (UBL)