feat(wms): operaciones de vehículo — estado de carga, manifiesto y exclusión FEFO (Inc 5 flota)#419
Merged
Merged
Conversation
…ft-warn por dimensión) — Inc 5 vehículos
…agregado + personal + estado) — Inc 5 vehículos
… cargado no está disponible) — Inc 5 vehículos
…culo + manifiesto (Inc 5 vehículos)
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #418
Inc 5 del EPIC de flota (vehículo = almacén móvil). Todo dominio puro en
warehouse-core/inventory— sin HTTP, sin repos nuevos. La orquestación real de cargar/descargar es del host (Fase 3); aquí se demuestra en el consumidor de validación.Qué entra
vehicleLoadStatus(maxCapacity, totals)— estado de carga frente a la carga útil máxima: utilización % por dimensión,overWeight/overVolumesoft-warn (avisan, nunca lanzan — en emergencia decide el operador),incompletecuando el total es un límite inferior. Utilizaciónnullen la dimensión sin límite declarado.buildVehicleManifest(looseLines, containers, lookup, maxCapacity)— "abrir el camión y ver": computa carga + estado y agrega el material por(supplyId, unit). El personal (nature=human) va aparte, no como cargo; líneas sinsupplyIdse excluyen.allocateFefo·FefoOptions.excludeWarehouseIds— el stock que ya va en un vehículo preparado no está "disponible": se excluye de la asignación. El host pasa los ids de los almaceneskind=vehicle.warehouse-postgres) — unit(...)end-to-end que carga un vehículo (traslado atómico víarunInWmsTransaction+actorId+idempotencyKey), lee suvehicleLoadStatus/buildVehicleManifest, y lo descarga dejándolo vacío. Prueba que un WMS standalone consume el paquete sinapps/*. La valida CI (int-test).Verificación (local, sin Postgres)
warehouse-corebuild + test: 199/199 verde.warehouse-postgresbuild +tsc -p tsconfig.test.json: 0 errores.apibuild +tsc --noEmit --incremental false: 0 errores.test:int(el consumidor) lo valida CI — no hay Postgres local en esta sesión.Spec:
docs/superpowers/specs/2026-07-13-vehiculos-almacen-movil-design.md§3.