Document Versions
ERPDocs preserves prior versions of every document automatically. When you upload a replacement file for an existing document, the old file is not overwritten — it is retained as a historical version.
How Versioning Works
- Every document starts at version 1.
- Uploading a new file for the same document creates version 2, version 3, and so on.
- The latest version is marked current and is what you see in the document list and detail page.
- Each version records: uploader, upload timestamp, version number, file size, and a SHA-256 hash for tamper detection.
Viewing & Downloading Older Versions
- Open a document's detail page.
- Click Versions to see the full history.
- Click Download next to any version to retrieve that file.
You can also restore an older version as the current version. The restore action creates a new version (it does not destroy the in-between history) and is recorded in the audit log.
Permissions
| Action | Required role |
|---|---|
| View version history | Viewer or higher |
| Download a prior version | Viewer or higher |
| Upload a new version | Manager or higher |
| Restore an older version as current | Manager or higher |
Custom roles may further restrict these actions per the permission ceiling.
Retention
Document versions are kept for the lifetime of the parent document. When the parent document is deleted (manually or by a Retention Policy), all versions are deleted with it. Documents on legal hold retain their full version history.