Fix - al importar de Factura Libre

This commit is contained in:
Mauricio Baeza 2017-12-28 19:03:01 -06:00
parent d3afe55eef
commit c314268b35
2 changed files with 6 additions and 1 deletions

View File

@ -2223,6 +2223,10 @@ class ImportFacturaLibre(object):
rfc = node.attrib['rfc']
nombre = node.attrib['nombre']
# ~ Validaciones especiales
if rfc == 'CPE920117QAA':
nombre = 'COMERCIALIZADORA PECOLLA SA DE CV'
tipo_persona = 1
if rfc == 'XEXX010101000':
tipo_persona = 4

View File

@ -4348,9 +4348,10 @@ def test_correo(values):
'usuario': values['correo_usuario'],
'contra': values['correo_contra'],
}
ccp = values.get('correo_copia', '')
options = {
'para': values['correo_usuario'],
'copia': values['correo_copia'],
'copia': ccp,
'asunto': values['correo_asunto'],
'mensaje': values['correo_mensaje'].replace('\n', '<br/>'),
'files': [],