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 ram:CategoryCode has the value B, none of the checked ram:CountryID values may differ from IT. An invoice with category B and another country value does not meet the rule.
B denotes “Split payment”. The rule restricts this category to a domestic Italian invoice.
The invoice uses tax category B, while a checked country identifier is not IT. You can align the category and the invoice’s country information.
- Check the
ram:CategoryCodeentries with the valueB. - Check the related country entries in
ram:CountryID. - Generate the invoice again and validate it.
<ram:CountryID>DE</ram:CountryID> <ram:CategoryCode>B</ram:CategoryCode>
<ram:CountryID>IT</ram:CountryID> <ram:CategoryCode>B</ram:CategoryCode>
TaxCategoryCodes(BT-151; BT-95; BT-102)TradeLineItem.TaxCategoryCode(BT-151)TradeLineItem.TaxType(BT-151-0)
Technical details
The XPath passes if no ram:CategoryCode equals B, or if, when category B is present, no checked ram:CountryID differs from IT.
This rule applies to the entire invoice. It checks ram:CategoryCode and ram:CountryID.
rule/@context)assert/@test)