From 28ef53043f7c3107d4395a4fde73fa4b5cf2caf2 Mon Sep 17 00:00:00 2001 From: el Mau Date: Mon, 13 Mar 2023 13:59:24 -0600 Subject: [PATCH] Fix in taxes in invoice pay --- source/app/models/main.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/source/app/models/main.py b/source/app/models/main.py index 7174c1b..d05ce55 100644 --- a/source/app/models/main.py +++ b/source/app/models/main.py @@ -7676,6 +7676,7 @@ class CfdiPagos(BaseModel): return impuestos def _get_related_xml(self, id_mov, currency): + #TAX ToDo TAX_IVA_16 = '002|0.160000' TAX_IVA_0 = '002|0.000000' @@ -7746,10 +7747,10 @@ class CfdiPagos(BaseModel): current_tax = f'{tax_type}|{tax_tasa}' if current_tax == TAX_IVA_16: - new_import_tax = round(Decimal(tax_tasa) * tax_base, 2) - while new_import_tax > importe: - tax_base -= Decimal(0.01) - new_import_tax = round(Decimal(tax_tasa) * tax_base, 2) + # ~ new_import_tax = round(Decimal(tax_tasa) * tax_base, 2) + # ~ while new_import_tax > importe: + # ~ tax_base -= Decimal(0.01) + # ~ new_import_tax = round(Decimal(tax_tasa) * tax_base, 2) total_tax_iva_16_base += tax_base total_tax_iva_16_importe += importe elif current_tax == TAX_IVA_0: