From bf5192ed8e062e7b475cda1085b4c1ccfbcfb06d Mon Sep 17 00:00:00 2001 From: el Mau Date: Thu, 2 Mar 2023 21:46:16 -0600 Subject: [PATCH] Fix for exempted tax --- source/helper/util.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/source/helper/util.py b/source/helper/util.py index 758d243..9e15f21 100644 --- a/source/helper/util.py +++ b/source/helper/util.py @@ -613,9 +613,12 @@ class DataToDict(): 'Base': data[i + 1], 'Impuesto': data[i + 2], 'TipoFactor': data[i + 3], - 'TasaOCuota': data[i + 4], - 'Importe': data[i + 5], } + if data[i + 4]: + tax['TasaOCuota'] : data[i + 4] + if data[i + 5]: + tax['Importe'] : data[i + 5] + if type_tax == self.TRASLADO: traslados.append(tax) elif type_tax == self.RETENCION: