Fix - Agregar varios productos

This commit is contained in:
Mauricio Baeza 2017-10-31 20:01:03 -06:00
parent a948f15453
commit c1f08305c9
1 changed files with 2 additions and 1 deletions

View File

@ -1308,10 +1308,11 @@ class Facturas(BaseModel):
FacturasDetalle.create(**product)
for tax in p.impuestos:
if tax.id in totals_tax:
totals_tax[tax.id]['importe'] += product['importe']
totals_tax[tax.id].importe += product['importe']
else:
tax.importe = product['importe']
totals_tax[tax.id] = tax
#~ totals_tax[tax.id]['importe'] = product['importe']
for tax in totals_tax.values():
if tax.tipo == 'E' or tax.tipo == 'R':