Skip to content

DOM-ACC-BKS-004Document Template

Markdown

DOM-ACC-BKS-004

Document Template

Markdown
  • DocumentDraft
  • ImplementationPartially observed

Planning

Specified by
CON-ACC-BKS-004

Design

Owned by
SVC-ACC-BKS-books

KindDomain objectProduct areaAccountingModuleBooks, Business Units and Chart of AccountsRevision1

Read atservices-accounting f47cb263react-console baf6dae3

Relationships

ToCardinalityOwnershipCrosses a serviceOn archive or delete
DOM-ACC-BKS-001Multiple units can select the same content for its document kindUnits maintain their document selections; each shared template maintains its own content.no
DOM-ACC-BKS-006Workspace settings select at most one statement templateWorkspace settings maintain the single optional statement-default selection.no

Invariants

InvariantProtectsEnforced atProvenance
INV-DOM-ACC-BKS-004-01
The kind assigned at customer-template creation cannot change in a later replacement.
service, databasetest
services-accounting:modules/books/tests/e2e/document-templates.e2e.spec.js#answers 409 to a change of kind, which is write-once
INV-DOM-ACC-BKS-004-02
Before saving, the service validates Liquid syntax and the variables and filters permitted for the document kind.
api, servicetest
services-accounting:modules/books/tests/e2e/document-templates.e2e.spec.js#answers 400 naming the line and column of Liquid that cannot be read
INV-DOM-ACC-BKS-004-03
Stored message, recipient and download parts satisfy the constraints for the template’s kind.
api, databasetest
INV-DOM-ACC-BKS-004-04
Built-in content cannot be replaced or deleted through configuration, and customer identities cannot use its reserved prefix.
service, databasetest
INV-DOM-ACC-BKS-004-05
A template referenced by a unit or the statement default must remain active and cannot be removed.
service, databasetest
services-accounting:modules/books/tests/e2e/document-templates.e2e.spec.js#answers 409 to deleting the business unit’s template, naming the unit
INV-DOM-ACC-BKS-004-06
The resolver rejects an unusable explicit selection and never returns an inactive customer template.
servicetest
services-accounting:modules/books/tests/unit/document-templates/resolution.spec.js#refuses an inactive template named explicitly, in Rhythm 1.0’s words

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.