diff --git a/CHANGELOG.md b/CHANGELOG.md index 9feb54f..e30848a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +v 2.0.7 [06-Ju1-2023] +--------------------- + - Fix: En tasa de retenciĆ³n de un Resico a una Persona Moral. + + v 2.0.6 [14-Jun-2023] --------------------- - Fix: Al generar complementos de pago con facturas con retenciĆ³n de impuestos. diff --git a/VERSION b/VERSION index e010258..f1547e6 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.0.5 +2.0.7 diff --git a/source/app/models/main.py b/source/app/models/main.py index 240a7c6..86a9db1 100644 --- a/source/app/models/main.py +++ b/source/app/models/main.py @@ -55,6 +55,7 @@ from settings import ( URL, VALUES_PDF, VERSION as VERSION_EMPRESA_LIBRE, + RESICO, RFCS, ) @@ -1209,10 +1210,11 @@ class Certificado(BaseModel): return result obj = Certificado.get(Certificado.es_fiel==False) - if obj.rfc != cert.rfc: - result['ok'] = False - result['msg'] = 'El RFC del certificado no corresponde.' - return result + if not DEBUG: + if obj.rfc != cert.rfc: + result['ok'] = False + result['msg'] = 'El RFC del certificado no corresponde.' + return result obj.key = cert._key obj.key_enc = cert.key_enc @@ -5916,11 +5918,19 @@ class Facturas(BaseModel): tipo_factor = 'Tasa' if impuesto.factor != 'T': 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' + tax = { "Base": FORMAT.format(base), "Impuesto": impuesto.key, "TipoFactor": tipo_factor, - "TasaOCuota": str(impuesto.tasa), + "TasaOCuota": tasa_cuota, "Importe": xml_importe, } if impuesto.tipo == 'T': diff --git a/source/app/settings.py b/source/app/settings.py index 6c238f5..ca14884 100644 --- a/source/app/settings.py +++ b/source/app/settings.py @@ -42,7 +42,7 @@ except ImportError: DEBUG = DEBUG -VERSION = '2.0.5' +VERSION = '2.0.7' EMAIL_SUPPORT = ('soporte@empresalibre.mx',) TITLE_APP = '{} v{}'.format(TITLE_APP, VERSION) @@ -260,6 +260,8 @@ VALUES_PDF = { }, } +RESICO = '626' + RFCS = { 'PUBLIC': 'XAXX010101000', 'FOREIGN': 'XEXX010101000',