Skip to content

Feature/panales operaciones refactoring - #45

Merged
iJosueeh merged 8 commits into
devfrom
feature/panales-operaciones-refactoring
Jul 2, 2026
Merged

Feature/panales operaciones refactoring#45
iJosueeh merged 8 commits into
devfrom
feature/panales-operaciones-refactoring

Conversation

@iJosueeh

@iJosueeh iJosueeh commented Jul 2, 2026

Copy link
Copy Markdown
Owner

No description provided.

iJosueeh added 8 commits July 2, 2026 02:08
- Updated role names: Químico -> Jefe de Sede
- Updated permission matrix with correct access levels per role
- Added M3_PRODUCTOS read access for Jefe de Sede
- Added CATEGORIAS read access for Técnico
- Added M10_REPORTES for Técnico
- Renumbered RF-01 to RF-36 to fill gaps
- Added RF-21: global patient listing
- Added RF-22: auto-generate recipe number
- Added RF-31: role hierarchy validation
- Added RF-32: permission assignment via checkboxes
- Added RF-33-RF-36: category and user management
- Added ID format reference table
- Updated credentials to match new ID format
- UsuarioRepository: add countMovimientosByUsuario, countAtencionesByUsuario, delete
- GestionarUsuarioUseCase: add eliminarUsuario with history check
- UserAdapter: add eliminarUsuario method
- UsuarioController: add delete button (fas-trash) and handleDeleteUser
  - If user has history (movimientos or atenciones): show warning to use deactivate
  - If user has no history: delete physically
- users-view.fxml: column width 120px to fit 4 buttons
- PacienteController: fix handleDelete to show NO_HISTORY warning instead of
  silently soft-deleting; separate desactivarPaciente() from eliminarPaciente();
  fix handleToggleBlock to call desactivarPaciente() not eliminarPaciente()
- GestionarPacienteUseCase: eliminarPaciente() now returns NO_HISTORY when
  patient has atencion history (no silent soft-delete); add desactivarPaciente()
- PacienteAdapter: add desactivarPaciente() method
- UsuarioController: add confirmation dialog before hard delete
- SedeController: add delete button (fas-trash) to actions column with
  confirmation dialog and NO_HISTORY warning
- SedeAdapter/SedeRepository/JdbcSedeRepository: add eliminarSede() with
  4-way history check (usuarios, lotes, movimientos, atenciones)
- add RF-26 (user deletion), detail RF-29/RF-30 (PDF columns exported)
- fix RF-05/RF-17/RF-20/RF-36 descriptions: explain physical vs logical
  delete pattern clearly for Word documentation
…ontext

- Changed the default growth message from "N/A" to "Sin datos suficientes" for better clarity when insufficient data is available in the report generation process.
…zation

- Updated ID formats for Paciente, Lote, Atención, and Detalle de Atención to include additional digits for consistency.
- Introduced new entities: Movimiento for inventory tracking, with sample data for both current and previous months.
- Corrected SQL syntax in dbdiagram.md for role table definition.
- Enhanced REQUERIMIENTOS.md to reflect updated ID formats and new entity definitions.
Copilot AI review requested due to automatic review settings July 2, 2026 08:27

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 a7f32a8 into dev Jul 2, 2026
2 checks passed
@iJosueeh
iJosueeh deleted the feature/panales-operaciones-refactoring branch July 2, 2026 08:28
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