Attestwire › Rule reference › BR-47
BR-47 Each VAT breakdown group must have a VAT category code
noun · EN 16931 · fatal · BT-118
For a sample invoice, the library reports: VAT breakdown group 1 of the document states no VAT category code (BT-118). Each VAT breakdown (BG-23) shall be defined through one: the code selects the rule family the group is judged by, so a group without it cannot be interpreted.
- Business term
BT-118- Severity
fatal
The fix
State the VAT category code (BT-118) on every VAT breakdown group of the document: the code of the lines and allowances the group sums.
What the library returns
The full error returned by @attestwire/en16931. It includes the rule ID,
affected field and suggested correction. Developers can use this object in their application:
{
"rule": "BR-47",
"field": "BT-118",
"severity": "fatal",
"message": "VAT breakdown group 1 of the document states no VAT category code (BT-118). Each VAT breakdown (BG-23) shall be defined through one: the code selects the rule family the group is judged by, so a group without it cannot be interpreted.",
"fix": "State the VAT category code (BT-118) on every VAT breakdown group of the document: the code of the lines and allowances the group sums.",
"xpath": "/ubl:Invoice/cac:TaxTotal/cac:TaxSubtotal[1]/cac:TaxCategory/cbc:ID",
"docsUrl": "https://attestwire.com/rules/BR-47"
}
xpath is always a UBL path. On a CII invoice, look for the
matching CII field instead.