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:
co-authored by
Claude Sonnet 4.6
parent
58dc364502
commit
2053d8a36f
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user