Skip to content

Commit

Permalink
Limpiar IVA liquidado al cambiar tasa al recalcular detalles
Browse files Browse the repository at this point in the history
  • Loading branch information
reingart committed Jul 10, 2015
1 parent 874c15c commit 4f6cc47
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions factura.pyw
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ from __future__ import with_statement # for python 2.5 compatibility
__author__ = "Mariano Reingart ([email protected])"
__copyright__ = "Copyright (C) 2014- Mariano Reingart"
__license__ = "LGPL 3.0"
__version__ = "0.9d"
__version__ = "0.9e"

# Documentación: http://www.sistemasagiles.com.ar/trac/wiki/PyFactura

Expand Down Expand Up @@ -209,6 +209,7 @@ def recalcular():
subtotal = qty * precio
it['subtotal'] = subtotal
total += subtotal
it['imp_iva'] = None
if iva_id in tasas_iva:
neto_iva[iva_id] = neto_iva.get(iva_id, 0.) + subtotal
if tasas_iva[iva_id] is not None and not tipo_cbte in datos.CLASE_C:
Expand Down Expand Up @@ -415,7 +416,7 @@ def crear_factura(comp, imprimir=True):
imp_iva = it['imp_iva'] or 0
subtotal = it['subtotal'] or 0
# no discriminar IVA si no es Factura A:
if tipo_cbte not in (1, 2, 3, 4) and imprimir:
if tipo_cbte not in (1, 2, 3, 4, 51, 52, 53, 54) and imprimir:
precio += imp_iva / qty
subtotal += imp_iva
despacho = ""
Expand Down

0 comments on commit 4f6cc47

Please sign in to comment.