fix: remove valor field from detallePedido; filter by PREFIJO in transaccion

- json_generator: remove valor entirely from detalle items (not even 0)
- transaccion: after fetching rows, filter by prefix if user typed full
  factura like "LHXC03726" and query returns PREFIJO column

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Lizandro Guarnizo
2026-07-01 12:00:42 -05:00
co-authored by Claude Sonnet 4.6
parent 1548aadf3c
commit ed9fead353
2 changed files with 3 additions and 1 deletions
-1
View File
@@ -153,7 +153,6 @@ def generar_rda_paciente(rows: list, default_profesional: str = "", default_espe
"codigoBodega": "00",
"cantidad": 1,
"tipoUnidad": "D",
"valor": 0,
"descuento": float(row.get("DESCUENTO") or 0),
"porcentajeIva": 0,
"impConsumo": 0,