Document Generation

Document workflow

1. Select a document type, quote/audit source, and optional active template. 2. The server normalizes source records and stores an immutable `sourceSnapshot`. 3. The document engin

Use this when...

Use this when you need to follow the normal operating flow for Document Generation.

  1. Select a document type, quote/audit source, and optional active template.
  2. The server normalizes source records and stores an immutable sourceSnapshot.
  3. The document engine selects permitted fields and creates the immutable content payload.
  4. Initial generation creates document version 1 and an activity entry.
  5. Editable records may be renamed, annotated, or explicitly regenerated from current source data; every action creates a new version.
  6. Customer-facing output from an unapproved quote/audit is labelled DRAFT / NOT CUSTOMER READY and cannot enter approval.
  7. A manager submits customer-ready or internal output through the existing generic ApprovalRequest model.
  8. approvals.manage users approve, reject, or request changes. Rejected/changes-requested records return to CHANGES_REQUESTED.
  9. Preview, browser print, and self-contained HTML download all use the stored content snapshot.
Developer Details
Source
apps/docs/content/documents/workflow.md
Owner
Module Owner
Status
Current
Module
Document Generation
Related route
/documents