# Changelog — doccontrol

> All notable changes to the **doccontrol** module are documented here.
> Format: grouped by version/date, newest first.

---

## v0.1.4 — 2026-03-25
### Chore
- Added `.gitattributes` to enforce LF line endings; renormalized all files

---

## v0.1.3 — 2026-03-25 (ETAP 2 planning)
### Roadmap additions
- Documented full ETAP 2 roadmap: R&U acknowledgements, review/approval notifications
- Added `SA_FILE` business document type to ETAP 2 plan
- Added `MFG_METHOD` + `WORK_INSTR` document types to ETAP 2 plan

---

## v0.1.0 — 2026-03-25 (initial scaffold)
### Module scaffold
- Module descriptor (`core/modules/modDocControl.class.php`) — module number 999100
- SQL install script (`sql/install.sql`):
  - `llx_doccontrol_document` — document registry
  - `llx_doccontrol_document_version` — version history
  - `llx_doccontrol_ack` — R&U acknowledgements
  - `llx_doccontrol_link` — links to Dolibarr objects
  - `llx_doccontrol_category` — document categories
- QMS menu integration (main menu: QMS → Document Control)
- Rights: `read`, `write`, `approve`, `delete`
- Initial page structure: `index.php`, `document_list.php`, `document_card.php`, `document_version_add.php`, `document_approve.php`
- AJAX upload handler (`ajax/upload_version.php`)
- CSS (`css/doccontrol.css`) and JS (`js/document.js`) stubs

---

## Backlog / ETAP 2–3 (planned)
- `doc_type` field + `llx_doccontrol_document_meta` table (MFG_METHOD, WORK_INSTR, SA_FILE)
- Dedicated type cards: `mfg_method_card.php`, `work_instr_card.php`
- R&U acknowledgement flow per user per version
- Review/approval email notifications
- Print-friendly WI view (`work_instr_print.php`)
- Integration with `trainmatrix` (R&U = proof of training)
- Integration with `scanstation` (WI display at workstation kiosk)
- ECR (Engineering Change Request) workflow
- Audit trail / change log per document
