Skip to content

feat(inventory, atencion): lot duplicate validation + editable detail… - #49

Merged
iJosueeh merged 1 commit into
devfrom
feat/atencion-dispensacion-redesign
Jul 9, 2026
Merged

feat(inventory, atencion): lot duplicate validation + editable detail…#49
iJosueeh merged 1 commit into
devfrom
feat/atencion-dispensacion-redesign

Conversation

@iJosueeh

@iJosueeh iJosueeh commented Jul 9, 2026

Copy link
Copy Markdown
Owner

…s with stock adjustment

  • Add lot duplicate validation in inventory modal (same product + same sede)
  • Add inline error label for lot validation in inventory wizard
  • Add editable detail table in atencion edit modal (Lote ComboBox + Cantidad TextField)
  • Create EditarAtencionUseCase with stock reversal logic (reverse old → apply new)
  • Create EliminarAtencionUseCase to restore stock on attention deletion
  • Add deleteDetallesByAtencionId and deleteMovimientosByAtencionId to repository
  • Add productoId to AtencionDetalle for lot loading per product
  • Fix eliminarAtencion to properly restore stock and clean movement records

BREAKING CHANGE: eliminarAtencion now requires session context for stock restoration

…s with stock adjustment

- Add lot duplicate validation in inventory modal (same product + same sede)
- Add inline error label for lot validation in inventory wizard
- Add editable detail table in atencion edit modal (Lote ComboBox + Cantidad TextField)
- Create EditarAtencionUseCase with stock reversal logic (reverse old → apply new)
- Create EliminarAtencionUseCase to restore stock on attention deletion
- Add deleteDetallesByAtencionId and deleteMovimientosByAtencionId to repository
- Add productoId to AtencionDetalle for lot loading per product
- Fix eliminarAtencion to properly restore stock and clean movement records

BREAKING CHANGE: eliminarAtencion now requires session context for stock restoration
Copilot AI review requested due to automatic review settings July 9, 2026 04:16

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@iJosueeh
iJosueeh merged commit 1507084 into dev Jul 9, 2026
1 check passed
@iJosueeh
iJosueeh deleted the feat/atencion-dispensacion-redesign branch July 9, 2026 04:45
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.

2 participants