Rules / IBR-007-AE
IBR-007-AE error
When Invoice Transaction-type code must be provided
When Invoice Transaction-type code (BTAE-02) has value 1XXXXXXX (Free trade zone), then Beneficiary ID (BTAE-01) must be provided.
Fails
<cbc:ProfileExecutionID>10000000</cbc:ProfileExecutionID>
<!-- the data this flag requires is missing or wrong -->
Fix
Transaction type 10000000 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, "^1[01]{7}$")) or cac:BuyerCustomerParty/cac:Party/cac:PartyIdentification/cbc:ID
Official text: When Invoice Transaction-type code (BTAE-02) has value 1XXXXXXX (Free trade zone), then Beneficiary ID (BTAE-01) MUST be provided.