Validacion cliente especial

This commit is contained in:
Mauricio Baeza 2018-01-24 16:15:29 -06:00
parent 35475694aa
commit 853d8f7881
2 changed files with 4 additions and 1 deletions

View File

@ -2408,7 +2408,6 @@ class ImportFacturaLibre(object):
nombre = node.attrib['nombre']
# ~ Validaciones especiales
tipo_persona = 1
if rfc == 'XEXX010101000':
tipo_persona = 4

View File

@ -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):