From 792b8b99d4d65c51b39459532fdd94283e08624e Mon Sep 17 00:00:00 2001 From: El Mau Date: Thu, 27 Jun 2024 22:50:55 -0600 Subject: [PATCH] =?UTF-8?q?Fix:=20Retenci=C3=B3n=20de=20RESICOS=20para=20P?= =?UTF-8?q?ersonas=20Morales?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 13 ++++++++++++- VERSION | 2 +- source/app/models/main.py | 17 ++++++----------- source/app/settings.py | 4 ++-- 4 files changed, 21 insertions(+), 15 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e9631ec..ef38d89 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,28 +1,39 @@ +v 2.3.3 [27-Jun-2024] +--------------------- + - Fix: Retención de RESICOS para Personas Morales. + + v 2.3.2 [10-Abr-2024] - - Fix: En las mercancias en la Carta Porte al generar el PDF. +--------------------- + - Fix: En las mercancías en la Carta Porte al generar el PDF. v 2.3.1 [02-Abr-2024] +--------------------- - Fix: En la cantidad de la mercancia en la Carta Porte. v 2.3.0 [01-Abr-2024] +--------------------- - Mejora: Soporte para complemento Carta Porte 3.0 - **IMPORTANTE**: Aunque no lo uses, esto afecta al JS de facturación, por lo que tienes que forzar el refresco (CTRL+F5) si tienes algún problema. v 2.2.0 [24-Ene-2024] +--------------------- - Mejora: Soporte para complemento Comercio Exterior 2.0 - **IMPORTANTE**: Aunque no lo uses, esto afecta al JS de facturación, por lo que tienes que forzar el refresco (CTRL+F5) si tienes algún problema. v 2.1.0 [26-Dic-2023] +--------------------- - Mejora: Se agrega filtro por día en facturas. v 2.0.9 [20-Dic-2023] +--------------------- - Fix: Issue 98 y 107 diff --git a/VERSION b/VERSION index f90b1af..0bee604 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.3.2 +2.3.3 diff --git a/source/app/models/main.py b/source/app/models/main.py index ef96df0..59caf46 100644 --- a/source/app/models/main.py +++ b/source/app/models/main.py @@ -5410,7 +5410,6 @@ class Facturas(BaseModel): tax_locales = Configuracion.get_bool('chk_config_tax_locales') tax_locales_truncate = Configuracion.get_bool('chk_config_tax_locales_truncate') tax_decimals = Configuracion.get_bool('chk_config_tax_decimals') - # ~ use_packing = Configuracion.get_bool('chk_use_packing') subtotal = 0 descuento_cfdi = 0 @@ -5445,10 +5444,6 @@ class Facturas(BaseModel): precio_final = valor_unitario - descuento importe = round(cantidad * precio_final, DECIMALES) - # ~ if use_packing and p.cantidad_empaque: - # ~ product['empaques'] = utils.round_up( - # ~ cantidad / float(p.cantidad_empaque)) - product['cantidad'] = cantidad product['valor_unitario'] = valor_unitario product['descuento'] = round(descuento * cantidad, DECIMALES) @@ -5625,7 +5620,6 @@ class Facturas(BaseModel): info['ubicaciones'] = ubicaciones info['tiposfigura'] = values['tiposfigura'] - # ~ print(2, info) data = { 'factura': invoice, 'nombre': 'cartaporte', @@ -5957,11 +5951,12 @@ class Facturas(BaseModel): tipo_factor = 'Cuota' tasa_cuota = str(impuesto.tasa) - if emisor['RegimenFiscal'] == RESICO \ - and len(emisor['Rfc']) == 13 \ - and len(receptor['Rfc']) == 12 \ - and tasa_cuota == '0.012500': - tasa_cuota = '0.0125' + # ~ RESICOS + # ~ if emisor['RegimenFiscal'] == RESICO \ + # ~ and len(emisor['Rfc']) == 13 \ + # ~ and len(receptor['Rfc']) == 12 \ + # ~ and tasa_cuota == '0.012500': + # ~ tasa_cuota = '0.0125' tax = { "Base": FORMAT.format(base), diff --git a/source/app/settings.py b/source/app/settings.py index c09abe6..767b0f2 100644 --- a/source/app/settings.py +++ b/source/app/settings.py @@ -39,9 +39,9 @@ except ImportError: DEBUG = DEBUG -VERSION = '2.3.2' +VERSION = '2.3.3' -EMAIL_SUPPORT = ('soporte@empresalibre.mx',) +EMAIL_SUPPORT = ('soporte@empresalibre.net',) TITLE_APP = '{} v{}'.format(TITLE_APP, VERSION) BASE_DIR = os.path.abspath(os.path.dirname(__file__))