Skip to content

CAP-ACC-BKS-018Preview, run and review scheduled Accounting work

Markdown

CAP-ACC-BKS-018

Preview, run and review scheduled Accounting work

Markdown
  • DocumentDraft
  • Product intentProposed
  • 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
Due work has one claimed occurrence with local-time interpretation.Preview explains timing before schedule changes are saved.Run history follows access to the owning subject.
Surfaces
consoleapijob

Controls

28 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-005 TC-AZ-006 TC-TEN-001 TC-TEN-002 TC-TEN-003 TC-DAT-004 TC-LOG-001 TC-LOG-002 TC-LOG-003 TC-LOG-004 TC-AVL-001 TC-AVL-004 TC-MON-001 TC-MON-002 TC-MON-004 TC-PI-001 TC-PI-002 TC-PI-004 TC-PI-005

Permissions

KeyChecked atScope
accounting.application.accessapitenant
accounting.recurring-batches.readservicetenant
accounting.batches.readservicetenant
accounting.reconciliation-batches.readservicetenant
accounting.reconciliation-exceptions.readservicetenant
accounting.recurring-billing-runs.readservicetenant

Business Rules

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

IdRuleKindEnforced atProvenance
01must prove
Proposed
Preview returns a schedule description, problems, warnings and five future instants with local times, saves nothing and requires application access.
calculationapi, servicetest
services-accounting:modules/maintenance/tests/e2e/schedules.e2e.spec.js#answers the next five runs, skipping the weekend, each as the instant and the local time
02must prove
Proposed
A schedule without a specified time zone uses the workspace’s zone.
calculationservicetest
services-accounting:modules/maintenance/tests/e2e/schedules.e2e.spec.js#reads it in the tenant’s zone from platform.tenants
03must prove
Proposed
Preview reports an interval shorter than the supplied minimum as a problem and returns no description or occurrences for an impossible weekly schedule with no weekdays.
validationservicetest
services-accounting:modules/maintenance/tests/e2e/schedules.e2e.spec.js#answers the same hourly schedule as a problem when asked about a minimum interval of a day
04must prove
Proposed
Run-history access requires the scheduled subject’s read permission in addition to application access.
permissionapi, servicetest
services-accounting:modules/maintenance/tests/e2e/schedules.e2e.spec.js#answers 403 to a caller who may open Accounting but not read the recurring batch the schedule belongs to
05must prove
Proposed
A due occurrence is claimed only once during racing dispatches, and disabled schedules are not claimed.
invariantservice, databasetest
06must prove
Proposed
The tested spring transition moves a 2:30 AM occurrence to 3:30 AM and dates the work using the occurrence’s local day.
calculationservicetest
07must prove
Proposed
Five consecutive failures pause the schedule.
lifecycleservicetest
08
Proposed
Run-history pages sort newest first and contain at most 200 runs.
policyapitest
services-accounting:modules/maintenance/tests/e2e/schedules.e2e.spec.js#answers the newest runs first, as many as the limit, every property of each
09
Proposed
Accounting schedules recurring-batch rolls, automatic batch close, reconciliation overdue and drift sweeps and idempotency purge, and recurring-billing-run preparation.
policyserviceobserved
10must prove
Proposed
Saving an owned schedule validates its definition and minimum interval and recalculates the next occurrence, while schedule deletion cascades to its run history.
lifecycleserviceobserved

Scenarios

IdGivenWhenThenProvenance
01A recurring batch runs at nine on New York weekdays.The controller asks to preview its timing.The preview describes the recurrence and presents five upcoming weekday occurrences in local time.test
services-accounting:modules/maintenance/tests/e2e/schedules.e2e.spec.js#answers each run at 9 AM on New York’s clock, in its offset that day

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.