Rule reference

BR-47 The VAT breakdown group for category undefined has no VAT category code (BT-118)

The VAT breakdown group for category undefined has no VAT category code (BT-118). Each VAT breakdown (BG-23) shall be defined through one — the code is what selects the rule family the group is judged by, so a group without it is uninterpretable.

This rule is implemented and its error payload below is real, but the long-form write-up — normative text, worked example, divergence note — is not written yet. Everything the library knows about this rule is on this page. Ask and we will prioritise it.

Business term
BT-118
Severity
fatal

What the library returns

The exact object in result.errors when this rule fires. Generated by running @attestwire/en16931, not transcribed:

TeachingError
{
  "rule": "BR-47",
  "field": "BT-118",
  "severity": "fatal",
  "message": "The VAT breakdown group for category undefined has no VAT category code (BT-118). Each VAT breakdown (BG-23) shall be defined through one — the code is what selects the rule family the group is judged by, so a group without it is uninterpretable.",
  "fix": "The VAT breakdown is computed from your lines, so this cannot arise from your input — it indicates a defect in this library's arithmetic. Please report it with the invoice payload.",
  "xpath": "/ubl:Invoice/cac:TaxTotal/cac:TaxSubtotal[2]/cac:TaxCategory/cbc:ID",
  "docsUrl": "https://attestwire.com/rules/BR-47"
}

xpath locates the element in the generated UBL document, which is where a KoSIT or Peppol validator will report the same problem.

The fix

The VAT breakdown is computed from your lines, so this cannot arise from your input — it indicates a defect in this library's arithmetic. Please report it with the invoice payload.

Arrived from a stack trace? The docsUrl on every error links straight here. Something wrong on this page — tell us.