# UBL-FREXT-CR-645

Source: https://xmlvalid.com/rules/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

- Level: warning
- Rule sets: EXTENDED-CTC-FR rules (UBL) 1.4.0.04
- 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)]))`

Validate a document against these rules: https://xmlvalid.com/validate
