Attestwire › Rule reference › ATW-VAT-SCENARIO-APPLIED

ATW-VAT-SCENARIO-APPLIED A stated vatScenario is turned into its EN 16931 VAT category and rate

noun · Attestwire · information · BT-151

For a sample invoice, the library reports: vatScenario "domestic" (a taxed supply inside the seller's own country) was turned into codes. Filled in: vatCategory "S" (standard rated) on line 1, at the rate each states. These are the codes validateInput judged and the generators write, and applyVatScenarios returns them as an explicit invoice.

Business term
BT-151
Severity
information

The fix

Nothing needs fixing. To write something else, state it yourself: an explicit vatCategory, vatRate, vatExemptionReasons.S or vatExemptionReasonCodes.S always wins over a scenario.

A passing value

the shape this field expects
"vatCategory": "S"

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:

TeachingError
{
  "rule": "ATW-VAT-SCENARIO-APPLIED",
  "field": [
    "BT-151"
  ],
  "severity": "information",
  "message": "vatScenario \"domestic\" (a taxed supply inside the seller's own country) was turned into codes. Filled in: vatCategory \"S\" (standard rated) on line 1, at the rate each states. These are the codes validateInput judged and the generators write, and applyVatScenarios returns them as an explicit invoice.",
  "fix": "Nothing needs fixing. To write something else, state it yourself: an explicit vatCategory, vatRate, vatExemptionReasons.S or vatExemptionReasonCodes.S always wins over a scenario.",
  "example": "\"vatCategory\": \"S\"",
  "docsUrl": "https://github.com/attestwire/en16931#not-implemented-yet"
}