From 5c03e58639a6a11d27695610acb4c21e508b8719 Mon Sep 17 00:00:00 2001 From: Lizandro Guarnizo <77708265+lizandrogd@users.noreply.github.com> Date: Fri, 26 Jun 2026 20:27:01 -0500 Subject: [PATCH] =?UTF-8?q?Fix=20contrato=20particular:=20usar=20"012"=20(?= =?UTF-8?q?como=20est=C3=A1=20en=20TNS=20y=20Firebird)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 4.6 --- app/services/json_generator.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/services/json_generator.py b/app/services/json_generator.py index 61b378d..61304a0 100644 --- a/app/services/json_generator.py +++ b/app/services/json_generator.py @@ -148,10 +148,7 @@ def generar_rda_paciente(rows: list, default_profesional: str = "", default_espe nit_empresa.upper() in ("PART", "PARTICULAR", "", "0") or cod_contrato_raw.lstrip("0") == "12" ) - if es_particular: - cod_contrato = "12" # TNS tiene el contrato como "12", no "012" - else: - cod_contrato = cod_contrato_raw or None + cod_contrato = cod_contrato_raw or ("012" if es_particular else None) cod_forma_pago = "CLIP" if es_particular else "INST" # tipousuario: particular siempre "12"; para convenios usar TIPOUSUSISPRO o derivar