Attestwire › Rule reference › BR-CL-17
BR-CL-17 A VAT breakdown category code must be a UNTDID 5305 code
noun · EN 16931 · fatal · BT-118
For a sample invoice, the library reports: The VAT breakdown (BG-23) in this document states a VAT category code (BT-118) of "Q", which is not in UNTDID 5305. EN 16931 admits exactly 10 codes: "AE", "L", "M", "E", "S", "Z", "G", "O", "K", "B".
- Business term
BT-118- Severity
fatal
The fix
Correct the category code in the VAT breakdown to the one the lines in that group carry.
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-CL-17",
"field": "BT-118",
"severity": "fatal",
"message": "The VAT breakdown (BG-23) in this document states a VAT category code (BT-118) of \"Q\", which is not in UNTDID 5305. EN 16931 admits exactly 10 codes: \"AE\", \"L\", \"M\", \"E\", \"S\", \"Z\", \"G\", \"O\", \"K\", \"B\".",
"fix": "Correct the category code in the VAT breakdown to the one the lines in that group carry.",
"xpath": "/ubl:Invoice/cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory/cbc:ID",
"docsUrl": "https://attestwire.com/rules/BR-CL-17"
}
xpath is always a UBL path. On a CII invoice, look for the
matching CII field instead.