fix: use Firebird PREFIJO as codigoPrefijo; add debug endpoint to find CUPs field

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Lizandro Guarnizo
2026-07-01 12:07:43 -05:00
co-authored by Claude Sonnet 4.6
parent ed9fead353
commit 8732db9c1f
3 changed files with 70 additions and 2 deletions
+1 -1
View File
@@ -197,7 +197,7 @@ def generar_rda_paciente(rows: list, default_profesional: str = "", default_espe
vigencia = 30
result = {
"codigoPrefijo": default_prefijo or str(h.get("PREFIJO") or "00").strip(),
"codigoPrefijo": str(h.get("PREFIJO") or "").strip() or default_prefijo or "00",
"numero": numero_override if numero_override else (
str(h.get("NUM_FACTURA") or "").strip() if (h.get("NUM_FACTURA") or 0) != 0 else ""
),