BR-05 An invoice must have a currency code (BT-5) from ISO 4217, but none was provided
An invoice must have a currency code (BT-5) from ISO 4217, but none was provided. Every monetary amount in the document is interpreted against this code.
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-5- Severity
fatal
What the library returns
The exact object in result.errors when this rule fires.
Generated by running @attestwire/en16931, not transcribed:
{
"rule": "BR-05",
"field": "BT-5",
"severity": "fatal",
"message": "An invoice must have a currency code (BT-5) from ISO 4217, but none was provided. Every monetary amount in the document is interpreted against this code.",
"fix": "Set currency to the three-letter ISO 4217 alphabetic code, e.g. \"EUR\". Use the code, not the symbol.",
"example": "\"currency\": \"EUR\"",
"xpath": "/ubl:Invoice/cbc:DocumentCurrencyCode",
"docsUrl": "https://attestwire.com/rules/BR-05"
}
xpath locates the element in the generated UBL document,
which is where a KoSIT or Peppol validator will report the same problem.
A passing value
"currency": "EUR"The fix
Set currency to the three-letter ISO 4217 alphabetic code, e.g. "EUR". Use the code, not the symbol.