An Invoice where the VAT category code (BT-151, BT-95 or BT-102) is “Split payment” shall be a domestic Italian invoice.
If a CategoryCode B occurs, the invoice contains at least one CountryID that is not IT. The rule allows category B only when no different country value is present.
The code B identifies the “Split payment” tax category. Under this rule, the category is restricted to domestic Italian invoices.
The invoice uses category B but also contains a country value other than IT. You can make the tax category and country information consistent.
- Check the
CategoryCodevalues in the relevant tax information. - Check the
CountryIDvalues in the invoice. - Check the tax category using
TaxCategoryCodesandTradeLineItem.TaxCategoryCode. - Regenerate the invoice and validate it again.
TaxCategoryCodes(BT-151; BT-95; BT-102)TradeLineItem.TaxCategoryCode(BT-151)TradeLineItem.TaxType(BT-151-0)
Technical details
The XPath passes if no CategoryCode B occurs, or if no CountryID value other than IT occurs when CategoryCode B is present.
The rule applies to CategoryCode values in the invoice and to the CountryID values occurring in it.
rule/@context)assert/@test)