feat: implementar jornadas y validar aliases

This commit is contained in:
mono
2026-10-25 17:20:48 -05:00
parent 89390b5bed
commit 4ffce3e3cd
27 changed files with 537 additions and 29 deletions

View File

@@ -0,0 +1,22 @@
# Spec: jornada-toldo
## ADDED Requirements
### Requirement: Jornada unificada
The system SHALL have a JornadaToldo that groups all operations of a market day.
#### Scenario: Abrir jornada
- GIVEN no open jornada
- WHEN user opens jornada with responsables and base inicial
- THEN jornada is created with estado ABIERTA
#### Scenario: Ventas asociadas a jornada
- GIVEN open jornada
- WHEN sale is registered
- THEN sale is linked to jornadaId
#### Scenario: Cierre de jornada
- GIVEN open jornada with ventas and gastos
- WHEN closing with final inventory and cash counts
- THEN jornada becomes CERRADA with cuadre
- AND cannot add sales/gastos after closure