forked from elmau/empresa-libre
Fix in tax object 04
This commit is contained in:
commit
602467c8e9
|
@ -5777,6 +5777,9 @@ class Facturas(BaseModel):
|
|||
|
||||
rows = FacturasDetalle.select().where(FacturasDetalle.factura==invoice)
|
||||
for row in rows:
|
||||
|
||||
object_tax = row.producto.objeto_impuesto
|
||||
|
||||
if is_global:
|
||||
key_sat = row.clave_sat
|
||||
key = row.clave
|
||||
|
@ -5830,6 +5833,7 @@ class Facturas(BaseModel):
|
|||
else:
|
||||
product_taxes = row.producto.impuestos
|
||||
|
||||
if object_tax == '02':
|
||||
for impuesto in product_taxes:
|
||||
base = float(row.importe - row.descuento)
|
||||
if is_global:
|
||||
|
|
Loading…
Reference in New Issue