Skip to content

feat: record remarks + replacement link on spare-part moves#104

Merged
tekwani merged 1 commit into
tetherto:developfrom
mukama:feat/spare-parts-remarks-replaces
Jun 23, 2026
Merged

feat: record remarks + replacement link on spare-part moves#104
tekwani merged 1 commit into
tetherto:developfrom
mukama:feat/spare-parts-remarks-replaces

Conversation

@mukama

@mukama mukama commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

No description provided.

PUT /auth/spare-parts/:id now accepts optional `remarks` and
`replacesPartCode`. The server-computed partsMoves entry gains:
- `remarks` (falls back to info.reason) — backs the move REASON column
- `replacesPartCode` + `replacesPartId` + `role: 'replacement'` — links a
  replacement part to the part it replaces (the REPLACES column)

replacesPartCode is validated server-side (must resolve to an existing
part, can't be the part itself), so the partsMoves audit trail stays
non-forgeable. Both fields are optional, move-only metadata and are not
written to the part record; existing payloads are unaffected.

Claude-Session: https://claude.ai/code/session_01UcMhxtedvx5EDRffjJdBRF
@tekwani tekwani merged commit 7c97f6b into tetherto:develop Jun 23, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants