---
id: TST-ACC-TRX-019
title: Tax suite
kind: api-lifecycle
product_area: accounting
module: transactions
revision: 1
status: draft
source_sha:
  services-accounting: f47cb263875bbc0c5640fba7dae6785ec32695f8
repository: services-accounting
files:
  - modules/transactions/tests/e2e/tax.e2e.spec.js
implements: []
implements_parts: []
environment: local
implementation_state: implemented
latest_result: not-run
latest_run_at: null
latest_run_ref: null
conformance: not-verified
estimated_minutes: 3
isolation: >-
  Suite-marked records in the prepared local test database; fixture teardown
  removes owned records.
provenance: test
source: 'services-accounting:modules/transactions/tests/e2e/tax.e2e.spec.js'
evidence:
  - provenance: test
    source: 'services-accounting:modules/transactions/tests/e2e/tax.e2e.spec.js'
    assertion_titles:
      - the tax calculation route (end to end)
      - a quote at a New York address
      - >-
        answers 200 with every line, its components and the total, the money on
        the wire
      - >-
        taxes at the ship-to when no bill-to is given, and refuses a taxed quote
        with neither address (D-T4)
      - answers every line zero with exempt true for an exemption
      - the refusals
      - >-
        refuses a caller who holds accounting.application.access alone: 403
        permission_missing, before the operation runs
      - 'refuses a caller signed for another tenant: 403'
      - 'refuses a body the contract does not accept: 400 naming the field'
      - >-
        refuses an amount in another currency 400 currency_mismatch, and a class
        the tenant has not 404 not_found
      - >-
        answers 200 for a zone whose rate names no account for any unit: the
        account is the posting’s concern
    imports:
      - >-
        const { parseBody, proxyEvent } =
        require('@rhythmsoftware/macroservice-testing/signed-context');
      - 'const { stage } = require(''@rhythmsoftware/macroservice-testing/stage'');'
      - >-
        const { accountingApi, accountingGrant } =
        require('../../../books/tests/e2e/e2e-security');
      - >-
        const { PERMISSION_MISSING, accessRefusalOf } =
        require('../../../books/tests/e2e/configuration-e2e-support');
      - >-
        const { createInvoiceWorld, expect, ready, removeTenantInvoices, testId
        } = require('../integration/invoices-fixtures');
      - >-
        const { MOUNT_VERNON_ADDRESS, NEW_YORK_ADDRESS, createTaxWorld } =
        require('../integration/tax-fixtures');
      - "\t\t\tctx: ctx ?? session.require().administrator,"
      - "\t\t\tsession.require();"
      - "\t\t\tconst { status, body } = quoted.require();"
      - "\t\t\tconst answer = await call(request(), { ctx: session.require().outsider });"
      - "\t\t\tconst answer = await call(request(), { ctx: session.require().elsewhere });"
    test_double_declarations: []
---

# Tax suite

## Verification Boundary

The suite exercises transaction commands and database protections in the local prepared test environment. Registration records the existing executable file; it does not report a run or establish product approval.

## What This Suite Proves

The executable assertions exercise this module, but no capability or feature scenario binding is established for this file. Its individual assertion titles remain in the evidence register for subsequent mapping.

## What It Does Not Prove

Local commands and route invocations do not establish deployed routing, live processor guarantees or the complete staff browser experience. An unbound feature chain remains proposed, and this registration carries no execution result.

## Real Dependencies and Test Doubles

The suite uses the imported commands, route handlers or persistence code against the local test database. Fixture helpers supply accounting context; any stepped clock, dummy processor or substituted external client is retained in the evidence declarations.

## Must Not Be Doubled

The command or persistence behavior under assertion and its relevant database protections must remain real. Substituting the final financial result removes evidence of transactional effects.
