PintLint

Rules / IBR-152-AE

IBR-152-AE error

In Delivery Information must be there, in case the Invoice transaction type code is…

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>
<!-- the data this flag requires is missing or wrong -->

Fix

Transaction type 00000001 switches this rule on. Either add what the rule asks for, or, if the flag was set by mistake, set it back 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 an invoice