Domestic Italian invoice for B

Error BR-B-01 EN 16931

An Invoice where the VAT category code (BT-151, BT-95 or BT-102) is “Split payment” shall be a domestic Italian invoice.

Mandatory rule: As long as it is violated, the invoice is invalid and will be rejected by validators.
What is wrong

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.

What the rule means

B denotes “Split payment”. The rule restricts this category to a domestic Italian invoice.

Affected fields BT-151 BT-95 BT-102
Please use `B` only for 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.

What to do
  1. Check the ram:CategoryCode entries with the value B.
  2. Check the related country entries in ram:CountryID.
  3. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:CountryID>DE</ram:CountryID>
<ram:CategoryCode>B</ram:CategoryCode>
✓ Correct
<ram:CountryID>IT</ram:CountryID>
<ram:CategoryCode>B</ram:CategoryCode>
Check in FactoorSharp
  • 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.

Where the rule applies

This rule applies to the entire invoice. It checks ram:CategoryCode and ram:CountryID.

Context (rule/@context)
/rsm:CrossIndustryInvoice
Test expression (assert/@test)
(not(//ram:CountryID != 'IT') and //ram:CategoryCode ='B') or (not(//ram:CategoryCode ='B'))