Rules / IBR-176-AE
When Invoice transaction type code is XXXXX1XX (Disclosed agent billing), then the value in field Seller VAT Identifier and Principal ID should not be the same
When Invoice transaction type code [BTAE-02] is XXXXX1XX (Disclosed agent billing), then the value in field Seller VAT Identifier [IBT-031] and Principal ID [BTAE-14] should not be the same.
Fails
<cbc:ProfileExecutionID>00000100</cbc:ProfileExecutionID>
<!-- cac:SellerSupplierParty/…/cbc:ID equals the seller's PartyTaxScheme/cbc:CompanyID -->
Fix
In disclosed agent billing, cac:SellerSupplierParty/cac:Party/cac:PartyIdentification/cbc:ID is the principal's ID. It must differ from your own VAT number in cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme/cbc:CompanyID.
Schematron
- Context
/ubl:Invoice | /cn:CreditNote- Test
(matches(cbc:ProfileExecutionID, "^[01]{5}1[01]{2}$") and cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme/cbc:CompanyID != cac:SellerSupplierParty/cac:Party/cac:PartyIdentification/cbc:ID) or not(matches(cbc:ProfileExecutionID, "^[01]{5}1[01]{2}$"))
Official text: When Invoice transaction type code [BTAE-02] is XXXXX1XX (Disclosed agent billing), then the value in field Seller VAT Identifier [IBT-031] and Principal ID [BTAE-14] should not be the same.