forked from elmau/empresa-libre
Fix - Agregar varios productos
This commit is contained in:
parent
a948f15453
commit
c1f08305c9
|
@ -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':
|
||||
|
|
Loading…
Reference in New Issue