commit task-p.7.2.1

This commit is contained in:
phaichayon
2026-07-01 06:27:03 +07:00
parent 53dfd20913
commit 0c39472dca
8 changed files with 506 additions and 245 deletions

View File

@@ -325,3 +325,24 @@ This guarantees that every package delivered to a customer is assembled from app
* Customer Package assembly is based exclusively on Approved PDF.
* UI hierarchy reflects the CRM document lifecycle.
* The new terminology is reusable across future modules such as Purchase Order, Service Report, Inspection Report, and Work Order.
---
## Implementation Status - 2026-07-01
Status: Completed
Implemented:
- Added `Documents` and `Customer Package` tabs on quotation detail.
- Split document UX into `Working Documents`, `Official Documents`, and `Customer Package`.
- Added explicit `Official Documents` preview/download actions and kept `Customer Package` operational detail in a dedicated tab.
- Updated customer package assembly so the main source is the approved PDF, not the working quotation render.
- Updated customer package error mapping so missing approved PDF shows business-readable guidance.
Verification:
- `npm exec tsc --noEmit` -> PASS
- `node --import tsx --test src/features/crm/quotations/customer-package.test.ts` -> PASS
- `npm run build` -> PASS
Implementation report:
- [task-p.7.2.1-working-official-documents-ux-2026-07-01.md](/C:/Users/mtpphtaps/Documents/gitea/alla-allaos-fullstack/docs/implementation/task-p.7.2.1-working-official-documents-ux-2026-07-01.md)