Repository navigation
feat(nomina): la comisión del repartidor suma las entregas a domicilio sin embarque — PR-2 de #472 - #486
Merged
Conversation
…o sin embarque (PR-2 de #472) Segunda fuente en POST /api/nomina AUTO: pedidos DOMICILIO entregados por completo con entregadoPorId = el trabajador, sin embarque y entregadoAt dentro del período. Mismas tarifas y misma regla de tipo de pago que las entregas de embarque; no cuenta dos veces un pedido que está en un embarque. Refs #472 Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_012bPJbVok2oF4zHZjCTqfKA
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Owner
Author
|
E2E: 66 specs distintos fallan en el PR y los 66 ya fallan en Dos de ellos tocan nómina ( En verde: Typecheck + Tests, Lint, Integration (incluida Generated by Claude Code |
This branch was successfully deployed
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.
Refs #472
Objetivo
Que una entrega registrada por el ADMIN sin embarque (PR-1, #482) le pague comisión al repartidor responsable. Es la condición para poder encender el interruptor
GESTION_ADMIN_SIN_EMBARQUE.Resumen de cambios
POST /api/nomina(AUTO): segunda fuente de comisión, marcadaTEMPORAL-SIN-EMBARQUE(#472). Cuenta los pedidosDOMICILIO,estadoEntrega = ENTREGADO,entregadoPorId= el trabajador,embarqueIdnulo yentregadoAtdentro del período. Mismas tarifas y misma regla de tipo de pago (COMISIÓN/MIXTO con moto) que las entregas de embarque.docs/pedidos/GESTION_TEMPORAL_SIN_EMBARQUE.mdactualizado (ya no hay que esperar a este PR para encender el interruptor).Criterios de aceptación
Validaciones ejecutadas
npx tsc --noEmit,eslintde los archivos tocados,npm run test(4160) y pruebas de integración con Postgres real (nomina-comision-sin-embarque4/4 yentrega-oficina-sin-embarque), tras rebase sobremain.Dependencias y limitaciones
main). Sin migración nueva.POST /api/configo SQL; ver doc).Info para QA
Con el interruptor encendido: registrar una entrega desde la ficha de un pedido a domicilio, elegir repartidor, y generar la nómina AUTO del período; la comisión debe aparecer en
entregasAgua/comEntregasAgua.Generated by Claude Code