Rules / IBR-142-AE
IBR-142-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 XXXXXX1X (E-commerce supplies).
Fails
<cbc:ProfileExecutionID>00000010</cbc:ProfileExecutionID>
<!-- the data this flag requires is missing or wrong -->
Fix
Transaction type 00000010 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]{6}1[01]$")) 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 XXXXXX1X (E-commerce supplies).