This commit is contained in:
Mauricio Baeza 2019-03-08 19:40:53 -06:00
parent 2ee2b8be43
commit 485dc4154e
4 changed files with 12 additions and 3 deletions

View File

@ -1,3 +1,7 @@
v 1.28.3 [09-mar-2019]
----------------------
- Error: Al mostrar detalle en facturas importadas #343
v 1.28.2 [04-mar-2019]
----------------------
- Error: Al enviar facturas de pago

View File

@ -1 +1 @@
1.28.2
1.28.3

View File

@ -5184,7 +5184,12 @@ class Facturas(BaseModel):
for concepto in data['conceptos']:
valor_unitario = float(concepto['ValorUnitario'])
descuento = float(concepto.get('Descuento', '0.0'))
clave = concepto.get('NoIdentificacion', '')
producto = None
if Productos.select().where(Productos.clave==clave).exists():
producto = Productos.get(Productos.clave==clave)
c = {
'producto': producto,
'cantidad': float(concepto['Cantidad']),
'valor_unitario': valor_unitario,
'descuento': descuento,
@ -5192,7 +5197,7 @@ class Facturas(BaseModel):
'importe': float(concepto['Importe']),
'descripcion': concepto['Descripcion'],
'unidad': concepto.get('Unidad', ''),
'clave': concepto.get('NoIdentificacion', ''),
'clave': clave,
'clave_sat': concepto['ClaveProdServ'],
}
conceptos.append(c)

View File

@ -47,7 +47,7 @@ except ImportError:
DEBUG = DEBUG
VERSION = '1.28.2'
VERSION = '1.28.3'
EMAIL_SUPPORT = ('soporte@empresalibre.mx',)
TITLE_APP = '{} v{}'.format(TITLE_APP, VERSION)