UBL-FREXT-CR-645
A UBL invoice should not include the DeliveryTerms except ID and location cac:DeliveryLocation/cbc:Name (for INCOTERMS) on line level
warning: reported, still valid
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
[UBL-FREXT-CR-410] A UBL invoice should not include the DeliveryTerms except ID and location cac:DeliveryLocation/cbc:Name (for INCOTERMS) on line level
Context
/ubl:Invoice | /cn:CreditNote
Test
not((cac:InvoiceLine|cac:CreditNoteLine)/cac:DeliveryTerms) or (not((cac:InvoiceLine|cac:CreditNoteLine)/cac:DeliveryTerms/*[not(self::cbc:ID or self::cac:DeliveryLocation)]) and not((cac:InvoiceLine|cac:CreditNoteLine)/cac:DeliveryTerms/cac:DeliveryLocation/*[not(self::cbc:Name)]))
Checked with France EXTENDED-CTC-FR (UBL)