Fix in retention tax for RESICOs
This commit is contained in:
parent
cd424b71dc
commit
8feba167af
|
@ -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.
|
||||
|
|
|
@ -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':
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue