---
id: TST-ACC-TRX-130
title: Calculate tax suite
kind: integration
product_area: accounting
module: transactions
revision: 1
status: draft
source_sha:
  services-accounting: f47cb263875bbc0c5640fba7dae6785ec32695f8
repository: services-accounting
files:
  - >-
    modules/transactions/tests/integration/services/tax/calculate-tax.integration.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/integration/services/tax/calculate-tax.integration.spec.js
evidence:
  - provenance: test
    source: >-
      services-accounting:modules/transactions/tests/integration/services/tax/calculate-tax.integration.spec.js
    assertion_titles:
      - calculateTaxQuote (integration)
      - a line of each kind at a New York address
      - taxes the dues line under its product’s class by both rates
      - >-
        taxes nothing of a product with no class, taxes the reduced class by the
        city alone, and nothing of a line sent as not taxable
      - >-
        answers the zone, the address used, the total and no warning, with the
        zone and rate ids on each component
      - the address and the zone
      - >-
        taxes at the bill-to before the ship-to, and at the ship-to when there
        is no bill-to
      - >-
        refuses a quote of a taxed line with no address at all (D-T4), naming
        the code, and answers the rest of the world for an address no other zone
        matches
      - >-
        answers the warning, not a refusal, when no address is given for a line
        with no tax class
      - >-
        answers the warning and nothing when no zone matches and there is no
        rest of the world
      - >-
        taxes a line that ships at the ship-to address and the rest at the
        bill-to, each line saying which (Andrew, 2026-10-18)
      - >-
        answers exempt for a bill-to organization CRM says is tax exempt, as the
        invoice is, and not for one that is not
      - >-
        answers every line zero with exempt true for an exemption, the address
        and zone still named
      - the refusals
      - 'refuses a business unit the tenant has not, and a tax class it has not'
      - refuses an amount in another currency
      - >-
        quotes at Westchester, whose County rate names no account for any unit:
        the account is the posting’s concern, not the quote’s
    imports:
      - 'const { stage } = require(''@rhythmsoftware/macroservice-testing/stage'');'
      - >-
        const { createTaxZone, deleteTaxZone } =
        require('../../../../../books/services/persistence/tax-zones');
      - >-
        const { calculateTaxQuote } =
        require('../../../../services/tax/tax-quotes');
      - >-
        const { createInvoiceWorld, expect, fixedIn, ready, refusalOf,
        removeTenantInvoices, testId } = require('../../invoices-fixtures');
      - '} = require(''../../tax-fixtures'');'
      - "\t\t\t\tworld.require();"
      - "\t\t\tconst dues = quoted.require().lines[0];"
      - "\t\t\tconst { lines } = quoted.require();"
      - "\t\t\tconst answer = quoted.require();"
      - "\t\t\tworld.require();"
      - "\t\t\tworld.require();"
    test_double_declarations: []
---

# Calculate 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.
