Fix - Factura con retenciones

This commit is contained in:
Mauricio Baeza 2017-11-17 21:23:49 -06:00
parent bf84b9a49b
commit eb89b8e8fa
1 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,6 @@
#!/usr/bin/env python
from decimal import Decimal
import sqlite3
import click
from peewee import *
@ -2046,8 +2047,8 @@ class Facturas(BaseModel):
invoice_tax = {
'factura': invoice.id,
'impuesto': tax['id'],
'base': tax['importe'],
'impuesto': tax.id,
'base': tax.importe,
'importe': import_tax,
}
FacturasImpuestos.create(**invoice_tax)