diff --git a/source/app/models/main.py b/source/app/models/main.py index a62f82b..f95dcd2 100644 --- a/source/app/models/main.py +++ b/source/app/models/main.py @@ -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':