Fix - Factura con retenciones
This commit is contained in:
parent
bf84b9a49b
commit
eb89b8e8fa
|
@ -1,5 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
from decimal import Decimal
|
||||||
import sqlite3
|
import sqlite3
|
||||||
import click
|
import click
|
||||||
from peewee import *
|
from peewee import *
|
||||||
|
@ -2046,8 +2047,8 @@ class Facturas(BaseModel):
|
||||||
|
|
||||||
invoice_tax = {
|
invoice_tax = {
|
||||||
'factura': invoice.id,
|
'factura': invoice.id,
|
||||||
'impuesto': tax['id'],
|
'impuesto': tax.id,
|
||||||
'base': tax['importe'],
|
'base': tax.importe,
|
||||||
'importe': import_tax,
|
'importe': import_tax,
|
||||||
}
|
}
|
||||||
FacturasImpuestos.create(**invoice_tax)
|
FacturasImpuestos.create(**invoice_tax)
|
||||||
|
|
Loading…
Reference in New Issue