Fix - al importar producto exento
This commit is contained in:
parent
4a0fed1630
commit
ca9fe39f5e
|
@ -5159,10 +5159,14 @@ def _get_id_unidad(unidad):
|
|||
def _get_impuestos(impuestos):
|
||||
lines = '|'
|
||||
for impuesto in impuestos:
|
||||
# ~ print (dict(impuesto))
|
||||
if impuesto['tasa'] == '-2/3':
|
||||
tasa = str(round(2/3, 6))
|
||||
else:
|
||||
tasa = str(round(float(impuesto['tasa']) / 100.0, 6))
|
||||
if impuesto['tasa'] == 'EXENTO':
|
||||
tasa = '0.00'
|
||||
else:
|
||||
tasa = str(round(float(impuesto['tasa']) / 100.0, 6))
|
||||
|
||||
info = (
|
||||
IMPUESTOS.get(impuesto['nombre']),
|
||||
|
|
|
@ -109,6 +109,7 @@ IMPUESTOS = {
|
|||
'ISR': '001',
|
||||
'IVA': '002',
|
||||
'IEPS': '003',
|
||||
'EXENTO': '000',
|
||||
'ISH': '000',
|
||||
'INSPECCION DE OBRA': '000',
|
||||
'ICIC': '000',
|
||||
|
|
Loading…
Reference in New Issue