Skip to content

ATS-ACC-CLS-002Check whether a close or reopen is available: Capability Test Specification

Markdown

ATS-ACC-CLS-002

Check whether a close or reopen is available: Capability Test Specification

Markdown
  • DocumentProposed

KindAcceptance test setProduct areaAccountingModuleMonth-End ClosingRevision2

Read atservices-accounting f47cb263react-console baf6dae3

Coverage

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

Test Scenarios

6 scenarios proving CAP-ACC-CLS-002; 5 bound to an existing test.

01 Reject closing out of sequencevalidationunitnegativetest
Proves
BR-CAP-ACC-CLS-002-01
Preconditions
An earlier period remains open.
Steps
Validate a later close and request its authorization.
Expected
The earlier period is identified and closing is unavailable.
Data
Open earlier periods within and across years.
Bound to
Source
services-accounting:modules/fiscal-close/tests/unit/carried/fiscal-years/logic/validate-period-closing.spec.js#should throw an error if previous period in same year is open
02 Reject reopening behind protected later monthsedgeunitnegativetest
Proves
BR-CAP-ACC-CLS-002-02
Preconditions
A later month is closed or closing.
Steps
Validate reopening an earlier month in each arrangement.
Expected
Each arrangement refuses reopening without an elapsed-time exception.
Data
Calendars containing later closed and transitional periods.
Bound to
services-accounting:modules/fiscal-close/tests/unit/carried/fiscal-years/logic/validate-period-reopening.spec.js#should throw an error if subsequent period in same year is closing, and modification has NOT been within five minutes
Source
services-accounting:modules/fiscal-close/tests/unit/carried/fiscal-years/logic/validate-period-reopening.spec.js#should throw an error if subsequent period in NEXT year is closed
03 Separate action authority from sequencepermissionapitest
Proves
BR-CAP-ACC-CLS-002-04 BR-CAP-ACC-CLS-002-05
Preconditions
The same periods are inspected by a closer and an unprivileged caller.
Steps
Request available actions for the current and latest closed periods.
Expected
The closer receives the eligible action and the other caller receives permission explanations first.
Data
Two action profiles and a mixed calendar.
Bound to
Source
services-accounting:modules/fiscal-close/tests/integration/services/authorization/period-authorization.integration.spec.js#refuses both to a caller without the keys, saying so first
04 Return not found for an absent yearboundaryapinegativetest
Proves
BR-CAP-ACC-CLS-002-08
Preconditions
The requested year is unavailable in this workspace.
Steps
Request its action authorization.
Expected
The request returns not found.
Data
An absent year reference.
Bound to
Source
services-accounting:modules/fiscal-close/tests/integration/services/authorization/period-authorization.integration.spec.js#refuses a fiscal year the tenant does not have
05 Disable the reader’s close actionpermissionbrowsernegativetest
Proves
BR-CAP-ACC-CLS-002-09
Preconditions
A read-only user views a clean month.
Steps
Open the close workspace and inspect its action controls.
Expected
Close is disabled and the reader has no reopen action.
Data
The reader fixture from the authorization browser journey.
Bound to
Source
react-console:acceptance/accounting/playwright/journeys/reconciliation-close/ACT-ACC-0619.spec.ts#ACT-ACC-0619
06 Recheck action eligibility after closing and reopeninginteractionapiproposed
Proves
BR-CAP-ACC-CLS-002-01 BR-CAP-ACC-CLS-002-02 BR-CAP-ACC-CLS-002-04
Preconditions
An authorized closer selects the current open month.
Steps
Read both available actions; close the month, read them again, reopen it and read them once more.
Expected
Each action result follows the changed calendar state; execution refuses a fresh action that no longer meets its sequence guard.
Data
An authorized closer selects the current open month.
Source
rhythm-v2-docs:specs/accounting/close/design/workflows/WF-ACC-CLS-002-reopen-the-latest-closed-month.md#What It Does,services-accounting:modules/fiscal-close/tests/integration/services/authorization/period-authorization.integration.spec.js#refuses closing a period with an earlier one open, in 1.0’s sentence,services-accounting:modules/fiscal-close/tests/unit/carried/fiscal-years/logic/validate-period-reopening.spec.js#should throw an error if subsequent period in NEXT year is closed,services-accounting:modules/fiscal-close/tests/integration/services/authorization/period-authorization.integration.spec.js#lets an authorized caller close the current period, not reopen it

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.