Fix in retention tax for RESICOs
This commit is contained in:
commit
beda45690f
|
@ -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]
|
v 2.0.6 [14-Jun-2023]
|
||||||
---------------------
|
---------------------
|
||||||
- Fix: Al generar complementos de pago con facturas con retención de impuestos.
|
- Fix: Al generar complementos de pago con facturas con retención de impuestos.
|
||||||
|
|
|
@ -55,6 +55,7 @@ from settings import (
|
||||||
URL,
|
URL,
|
||||||
VALUES_PDF,
|
VALUES_PDF,
|
||||||
VERSION as VERSION_EMPRESA_LIBRE,
|
VERSION as VERSION_EMPRESA_LIBRE,
|
||||||
|
RESICO,
|
||||||
RFCS,
|
RFCS,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -1209,10 +1210,11 @@ class Certificado(BaseModel):
|
||||||
return result
|
return result
|
||||||
|
|
||||||
obj = Certificado.get(Certificado.es_fiel==False)
|
obj = Certificado.get(Certificado.es_fiel==False)
|
||||||
if obj.rfc != cert.rfc:
|
if not DEBUG:
|
||||||
result['ok'] = False
|
if obj.rfc != cert.rfc:
|
||||||
result['msg'] = 'El RFC del certificado no corresponde.'
|
result['ok'] = False
|
||||||
return result
|
result['msg'] = 'El RFC del certificado no corresponde.'
|
||||||
|
return result
|
||||||
|
|
||||||
obj.key = cert._key
|
obj.key = cert._key
|
||||||
obj.key_enc = cert.key_enc
|
obj.key_enc = cert.key_enc
|
||||||
|
@ -5916,11 +5918,19 @@ class Facturas(BaseModel):
|
||||||
tipo_factor = 'Tasa'
|
tipo_factor = 'Tasa'
|
||||||
if impuesto.factor != 'T':
|
if impuesto.factor != 'T':
|
||||||
tipo_factor = 'Cuota'
|
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 = {
|
tax = {
|
||||||
"Base": FORMAT.format(base),
|
"Base": FORMAT.format(base),
|
||||||
"Impuesto": impuesto.key,
|
"Impuesto": impuesto.key,
|
||||||
"TipoFactor": tipo_factor,
|
"TipoFactor": tipo_factor,
|
||||||
"TasaOCuota": str(impuesto.tasa),
|
"TasaOCuota": tasa_cuota,
|
||||||
"Importe": xml_importe,
|
"Importe": xml_importe,
|
||||||
}
|
}
|
||||||
if impuesto.tipo == 'T':
|
if impuesto.tipo == 'T':
|
||||||
|
|
|
@ -42,7 +42,7 @@ except ImportError:
|
||||||
|
|
||||||
|
|
||||||
DEBUG = DEBUG
|
DEBUG = DEBUG
|
||||||
VERSION = '2.0.5'
|
VERSION = '2.0.7'
|
||||||
|
|
||||||
EMAIL_SUPPORT = ('soporte@empresalibre.mx',)
|
EMAIL_SUPPORT = ('soporte@empresalibre.mx',)
|
||||||
TITLE_APP = '{} v{}'.format(TITLE_APP, VERSION)
|
TITLE_APP = '{} v{}'.format(TITLE_APP, VERSION)
|
||||||
|
@ -260,6 +260,8 @@ VALUES_PDF = {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
RESICO = '626'
|
||||||
|
|
||||||
RFCS = {
|
RFCS = {
|
||||||
'PUBLIC': 'XAXX010101000',
|
'PUBLIC': 'XAXX010101000',
|
||||||
'FOREIGN': 'XEXX010101000',
|
'FOREIGN': 'XEXX010101000',
|
||||||
|
|
Loading…
Reference in New Issue