Fix contrato particular: usar "012" (como está en TNS y Firebird)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
be272296af
commit
5c03e58639
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user