---
id: TST-ACC-TRX-136
title: Receivables aging checks suite
kind: unit
product_area: accounting
module: transactions
revision: 1
status: draft
source_sha:
  services-accounting: f47cb263875bbc0c5640fba7dae6785ec32695f8
repository: services-accounting
files:
  - modules/transactions/tests/unit/ar-aging-checks.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: 1
isolation: In-memory fixtures and test-controlled collaborators.
provenance: test
source: 'services-accounting:modules/transactions/tests/unit/ar-aging-checks.spec.js'
evidence:
  - provenance: test
    source: >-
      services-accounting:modules/transactions/tests/unit/ar-aging-checks.spec.js
    assertion_titles:
      - hundredthsOf
      - reads a two-decimal amount exactly
      - reads a negative amount
      - reads an amount with one decimal or none
      - refuses what is not an amount
      - the A/R aging checks
      - pass every check on figures that agree
      - >-
        fail the totals check when a total’s balance differs from its items’ by
        a cent
      - fail the totals check when the counts differ though the balances agree
      - fail the totals check when a business unit’s totals are missing
      - >-
        fail the bucket check, naming the misfiled items, when any item is in
        the wrong bucket
      - fail the zero balance check when an item has a zero balance
      - fail the sign check when an item’s sign is not its kind’s
      - fail the independent check when the events sum to another balance
      - >-
        fail the independent check when the events hold a currency the snapshot
        has no item of
      - >-
        pass the independent check when a currency the events hold sums to zero,
        as a settled currency has no item
      - 'pass every check on an empty month: no item, no total, no event'
    imports:
      - 'const { expect } = require(''chai'');'
      - >-
        const { AR_AGING_CHECKS, arAgingChecks, hundredthsOf } =
        require('../../services/types/ar-aging');
    test_double_declarations: []
---

# Receivables aging checks suite

## Verification Boundary

The suite exercises financial calculations and input contracts in an isolated test process. 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

Pure calculations and doubled collaborators do not establish database persistence, route authorization or deployed behavior. An unbound feature chain remains proposed, and this registration carries no execution result.

## Real Dependencies and Test Doubles

The imported calculation or contract runs with the fixtures and collaborators declared by the test. The evidence register retains those declarations so the boundaries can be inspected.

## Must Not Be Doubled

The calculation or contract being asserted must remain real; replacing it with a predetermined result removes this suite’s evidence.
