fix: codTercero uses full NIT with dash format (e.g. 900123456-7)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Lizandro Guarnizo
2026-07-28 18:28:39 -05:00
co-authored by Claude Sonnet 4.6
parent 58dc364502
commit 2053d8a36f
+1 -1
View File
@@ -292,7 +292,7 @@ def generar_factura_venta(rows: list, default_vendedor: str = "00",
})
nit_raw = str(h.get("NIT_EMPRESA") or "").strip()
cod_tercero = nit_raw.replace("-", "").strip() if nit_raw else str(h.get("COD_PACIENTE") or "").strip()
cod_tercero = nit_raw if nit_raw else str(h.get("COD_PACIENTE") or "").strip()
prefijo_real = str(h.get("PREFIJO") or "").strip() or default_prefijo or "00"