mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-09-30 03:43:11 +00:00
feat(work-orders): recalculate IsAddOn on schedule set/change/clear (SH-184)
Replace frozen-at-create behavior with authoritative server recalc and audit on schedule patches; document cross-repo contract with FE PR #102.
This commit is contained in:
parent
97e042f552
commit
633d80cbc9
1 changed files with 12 additions and 0 deletions
|
|
@ -157,6 +157,18 @@ Endpoints legados (`GetWorkOrderList`, `GetWorkorderById`, etc.) **não foram al
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
## Add-On indicator (SH-184)
|
||||||
|
|
||||||
|
- Coluna `IsAddOn` persistida; legacy `WorkOrderType.AddOn` (7) backfilled.
|
||||||
|
- **Create:** cutoff preview (scheduled) ou hint manual quando unscheduled (`request.IsAddOn`).
|
||||||
|
- **Patch schedule** (`scheduledDate`, `targetWeek`, `scheduleWeekOnly`): servidor **recalcula** `IsAddOn` e audita mudanças.
|
||||||
|
- **Schedule cleared:** `IsAddOn = false`.
|
||||||
|
- Search `Types=AddOn` matches legacy type 7 **or** `IsAddOn`.
|
||||||
|
|
||||||
|
Contrato FE: [shoc-frontend-new PR #102](https://github.com/Sea-Haven-Industries/shoc-frontend-new/pull/102).
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
## Próximo passo
|
## Próximo passo
|
||||||
|
|
||||||
**Fase 2** — Inline edit + concorrência (dual RowVersion, audit por campo, PATCH granular).
|
**Fase 2** — Inline edit + concorrência (dual RowVersion, audit por campo, PATCH granular).
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue