Validacion cliente especial
This commit is contained in:
commit
1b710e729a
|
@ -2408,7 +2408,6 @@ class ImportFacturaLibre(object):
|
|||
nombre = node.attrib['nombre']
|
||||
|
||||
# ~ Validaciones especiales
|
||||
|
||||
tipo_persona = 1
|
||||
if rfc == 'XEXX010101000':
|
||||
tipo_persona = 4
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue