PintLint

Rules / IBR-152-AE

In Delivery Information, Deliver to address line 1, deliver to city, deliver to country subdivision must be there, in case the Invoice transaction type code is XXXXXXX1 (Exports) and the deliver to country code should not be 'AE'

In Delivery Information (IBG-13), Deliver to address line 1 (IBT-075), deliver to city (IBT-077), deliver to country subdivision (IBT-079) must be there, in case the Invoice transaction type code [BTAE-02] is XXXXXXX1 (Exports) and the deliver to country code [IBT-080] should not be 'AE'.

Fails

<cbc:ProfileExecutionID>00000001</cbc:ProfileExecutionID>
<cac:Delivery><cac:DeliveryLocation><cac:Address>
  <!-- no cbc:StreetName, cbc:CityName or cbc:CountrySubentity -->
</cac:Address></cac:DeliveryLocation></cac:Delivery>

Fix

For exports (last digit of cbc:ProfileExecutionID is 1), give the delivery address: cbc:StreetName, cbc:CityName and cbc:CountrySubentity under cac:Delivery/cac:DeliveryLocation/cac:Address. If it isn't an export, set that digit to 0.

Schematron
Context
/ubl:Invoice | /cn:CreditNote
Test
not(matches(cbc:ProfileExecutionID, "^[01]{7}1$")) or cac:Delivery/cac:DeliveryLocation/cac:Address/cac:Country/cbc:IdentificationCode = "AE" or (cac:Delivery/cac:DeliveryLocation/cac:Address/cbc:StreetName and cac:Delivery/cac:DeliveryLocation/cac:Address/cbc:CityName and cac:Delivery/cac:DeliveryLocation/cac:Address/cbc:CountrySubentity)

Official text: In Delivery Information (IBG-13), Deliver to address line 1 (IBT-075), deliver to city (IBT-077), deliver to country subdivision (IBT-079) MUST be there, in case the Invoice transaction type code [BTAE-02] is XXXXXXX1 (Exports) and the deliver to country code [IBT-080] should not be 'AE'.

Official · PINT AE (UAE) rules. Severity: error. Runs on UBL XML.

Check your invoice for this rule