Skip to content

ATS-ACC-CLS-005Resolve ledger work that prevents closing: Capability Test Specification

Markdown

ATS-ACC-CLS-005

Resolve ledger work that prevents closing: Capability Test Specification

Markdown
  • DocumentProposed

KindAcceptance test setProduct areaAccountingModuleMonth-End ClosingRevision1

Read atservices-accounting f47cb263react-console baf6dae3

Coverage

  • Rule covered
  • Transition not-applicable
  • Validation covered
  • Permission gap: FND-ACC-CLS-061
  • Edge gap: FND-ACC-CLS-061
  • Failure gap: FND-ACC-CLS-061
  • Boundary covered
  • Concurrency gap: FND-ACC-CLS-061
  • Invariant gap: FND-ACC-CLS-061
  • Interaction covered

Test Scenarios

5 scenarios proving CAP-ACC-CLS-005; 4 bound to an existing test.

01 Check period order and the end-date boundaryboundaryunitnegativetest
Proves
BR-CAP-ACC-CLS-005-01 BR-CAP-ACC-CLS-005-02
Preconditions
Earlier periods remain open and dates span the month’s end.
Steps
Evaluate prior-period and ended-period checks.
Expected
Earlier outstanding periods block in date order, and the month passes its date check only after the final day.
Data
Calendar and local-date fixtures.
Bound to
services-accounting:modules/fiscal-close/tests/unit/readiness/period-rules.spec.js#is blocked by an earlier period of the same year that is open, naming it
services-accounting:modules/fiscal-close/tests/unit/readiness/period-rules.spec.js#is blocked by a period of an earlier year, and counts every one oldest first
Source
services-accounting:modules/fiscal-close/tests/unit/readiness/period-rules.spec.js#readiness: the calendar rules
02 Classify unfinished batches with their next actionruleunitnegativetest
Proves
BR-CAP-ACC-CLS-005-03 BR-CAP-ACC-CLS-005-04 BR-CAP-ACC-CLS-005-05 BR-CAP-ACC-CLS-005-06
Preconditions
The period contains all batch states and close-owned system batches.
Steps
Build the batch readiness result.
Expected
Unposted ordinary batches block with suitable actions, while posted and close-owned batches are excluded.
Data
Ordinary and system batches across status variants.
Bound to
services-accounting:modules/fiscal-close/tests/unit/readiness/batches-posted.spec.js#never counts the close’s own open system batches, deferred revenue and COGS, as unposted
services-accounting:modules/fiscal-close/tests/unit/carried/fiscal-years/logic/validate-period-closing-batches.spec.js#2.0: is blocked by the archived batch of 1.0's baseline, which 1.0 let through
services-accounting:modules/fiscal-close/tests/integration/services/persistence/unposted-batches.queries.integration.spec.js#never answers the close’s own system batches, open after a reopen, which the fixture wrote (premise)
Source
services-accounting:modules/fiscal-close/tests/unit/readiness/batches-posted.spec.js#readiness: batches_posted
03 Locate unfinished posting for every transaction kindvalidationapinegativetest
Proves
BR-CAP-ACC-CLS-005-07 BR-CAP-ACC-CLS-005-08
Preconditions
Eligible documents have absent, open or failed batches alongside excluded drafts.
Steps
Read outstanding transactions and build their check.
Expected
Each returned kind has its reason and navigation, with draft and pro forma invoices excluded.
Data
Eight transaction kinds with posting-state variants.
Bound to
services-accounting:modules/fiscal-close/tests/integration/services/persistence/unaccounted-transactions.queries.integration.spec.js#holds the draft, the pro forma, the posted and the downloaded documents of faa’s September (premise for their absence below)
Source
services-accounting:modules/fiscal-close/tests/integration/services/persistence/unaccounted-transactions.queries.integration.spec.js#answers every kind, mapped whole, by date with each reason
04 Expose ledger blockers in the consolevalidationbrowsernegativetest
Proves
BR-CAP-ACC-CLS-005-03 BR-CAP-ACC-CLS-005-04 BR-CAP-ACC-CLS-005-07
Preconditions
The month contains an open batch, archived batch and unposted invoice.
Steps
Open the checklist and inspect the supporting drawers.
Expected
The screen shows the outstanding records and their available next actions.
Data
The blocked-ledger browser fixture.
Bound to
Source
react-console:acceptance/accounting/playwright/journeys/reconciliation-close/ACT-ACC-0616.spec.ts#ACT-ACC-0616
05 Expose unfinished ledger work before protection appliesinteractionapiproposed
Proves
BR-CAP-ACC-CLS-005-03 BR-CAP-ACC-CLS-005-07
Preconditions
An ended open month has an ordinary unposted batch.
Steps
Read ledger blockers; complete its posting and reread readiness, then take the month for closing and try another ordinary posting.
Expected
Resolving the original work removes its blocker; subsequent ordinary work meets the protected-period guard.
Data
An ended open month has an ordinary unposted batch.
Source
rhythm-v2-docs:specs/accounting/close/design/workflows/WF-ACC-CLS-006-keep-ordinary-postings-out-of-a-protected-month.md#What It Does,services-accounting:modules/fiscal-close/tests/integration/services/readiness/evaluate-readiness.integration.spec.js#blocks on each failing check with its headline: 23 batches must be posted,services-accounting:modules/fiscal-close/tests/integration/services/persistence/unaccounted-transactions.queries.integration.spec.js#answers every kind, mapped whole, by date with each reason

The Markdown files under specs/ in rhythmsoftware/rhythm-v2-docs are the canonical source of truth. This reader is a generated, read-only projection of them.