Invoice line requires a VAT category

Error BR-CO-04 EN 16931

Each Invoice line (BG-25) shall be categorized with an Invoiced item VAT category code (BT-151).

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

The invoice line’s tax details with ram:TypeCode VAT are missing a ram:CategoryCode.

What the rule means

The VAT category code assigns the invoice line to a category of VAT treatment.

Affected fields BG-25 BT-151
Please add the VAT category for the invoice line

VAT details are present for the invoice line, but the category code is missing. Add it to the tax details with type VAT.

What to do
  1. Find the invoice line’s ApplicableTradeTax with TypeCode VAT.
  2. Add the missing CategoryCode there.
  3. Check the mapping in TradeLineItem.TaxCategoryCode and the related tax settings.
  4. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:ApplicableTradeTax>
  <ram:TypeCode>VAT</ram:TypeCode>
</ram:ApplicableTradeTax>
✓ Correct
<ram:ApplicableTradeTax>
  <ram:TypeCode>VAT</ram:TypeCode>
  <ram:CategoryCode>S</ram:CategoryCode>
</ram:ApplicableTradeTax>
Check in FactoorSharp
  • TradeLineItem.TaxCategoryCode (BT-151)
  • TradeLineItem.TaxType (BT-151-0)
  • TaxCategoryCodes (BT-151)
Technical details

The test looks for ram:ApplicableTradeTax with a ram:TypeCode value of VAT and requires a ram:CategoryCode there.

Where the rule applies

The rule applies to the invoice line’s tax details ram:ApplicableTradeTax whose ram:TypeCode is VAT.

Context (rule/@context)
//ram:IncludedSupplyChainTradeLineItem
Test expression (assert/@test)
(ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax[upper-case(ram:TypeCode) = 'VAT']/ ram:CategoryCode)