Skip to content

CAP-ACC-BKS-010Locate the fiscal period for accounting work

Markdown

CAP-ACC-BKS-010

Locate the fiscal period for accounting work

Markdown
  • DocumentDraft
  • Product intentConfirmed
  • ImplementationObserved

KindCapabilityProduct areaAccountingModuleBooks, Business Units and Chart of AccountsRevision1

Read atservices-accounting f47cb263react-console baf6dae3

The Formal Contract

The narrative above explains; the sections below are authoritative — the rules, scenarios and tests this document binds.

Outcomes
Accounting work resolves dates consistently against the unit’s calendar.Missing calendar coverage is reported without implicit generation.
Surfaces
consoleapijob
Intent sources
services-accounting:docs/milestones/ACCT-M1-books-and-invoices.md#D3

Controls

17 controls apply, from the corpus control catalogue.

TC-IAM-001 TC-IAM-002 TC-IAM-004 TC-IAM-005 TC-IAM-006 TC-AZ-001 TC-AZ-002 TC-AZ-003 TC-AZ-004 TC-AZ-006 TC-TEN-001 TC-TEN-002 TC-TEN-003 TC-LOG-004 TC-LOG-005 TC-PI-001 TC-PI-002

Permissions

KeyChecked atScope
accounting.fiscal-years.readapitenant

Business Rules

6 rules, 4 to be proved before approval. A rule's product intent is derived from its origin: 6 confirmed by a product decision, the rest inheriting this capability's confirmed.

IdRuleKindEnforced atProvenance
01must prove
Confirmed
The current period is the earliest open period in the earliest open year and is returned with that year; a unit with no open year receives the legacy no-current-period refusal.
calculationservicetest
02must prove
Confirmed
A date lookup returns its containing period and year whether open or closed, and an uncovered date is not found without generating a calendar.
calculationservicetest
services-accounting:modules/books/tests/e2e/fiscal-years.e2e.spec.js#answers 404 to the day after the last year, generating nothing
03must prove
Confirmed
The boundary days of a year resolve to its own first and last periods rather than neighbouring years.
calculationservicetest
services-accounting:modules/books/tests/integration/services/persistence/fiscal-periods.queries.integration.spec.js#answers the year’s last period on the year’s last day, not the next year
04
Confirmed
A lookup refuses input that is not a valid calendar date.
validationapitest
05
Confirmed
Both lookups require fiscal-year read permission and are confined to the workspace’s units.
permissionapi, databasetest
06must prove
Confirmed
A recurring-batch roll outside its unit’s generated calendar fails with the date and unit identified rather than creating another year.
policyservicetest
services-accounting:modules/maintenance/tests/integration/services/scheduling/schedules-end-to-end.integration.spec.js#fails the roll dated in no fiscal year of the unit, with the sentence naming the date and the unit

Scenarios

IdGivenWhenThenProvenance
01The July-start 2026–2027 calendar is open.Staff locate the period containing October 18, 2026.The response identifies October as the fourth period of that fiscal year.test

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.