Fix in tax object 04

This commit is contained in:
el Mau 2023-02-17 13:44:42 -06:00
commit 602467c8e9
1 changed files with 44 additions and 40 deletions

View File

@ -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: