diff --git a/source/app/controllers/util.py b/source/app/controllers/util.py index 664cfb5..ab27189 100644 --- a/source/app/controllers/util.py +++ b/source/app/controllers/util.py @@ -2408,7 +2408,6 @@ class ImportFacturaLibre(object): nombre = node.attrib['nombre'] # ~ Validaciones especiales - tipo_persona = 1 if rfc == 'XEXX010101000': tipo_persona = 4 diff --git a/source/app/models/main.py b/source/app/models/main.py index 5fe3bd4..e7a0143 100644 --- a/source/app/models/main.py +++ b/source/app/models/main.py @@ -5467,6 +5467,10 @@ def _importar_facturas(rows): detalles = row.pop('detalles') impuestos = row.pop('impuestos') cliente = row.pop('cliente') + + if cliente['rfc'] == 'VSM960610AC0': + cliente['slug'] = 'vf_servicios_mexicana,_s.a._de_c.v.' + row['cliente'] = Socios.get(**cliente) with database_proxy.atomic() as txn: if _existe_factura(row):