Fix issue #107
This commit is contained in:
parent
5057ac57ae
commit
4d9bc4a172
|
@ -34,4 +34,5 @@ credenciales.conf
|
|||
*.orig
|
||||
rfc.db
|
||||
Dockerfile
|
||||
chuletas/
|
||||
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
v 2.0.9 [20-Dic-2023]
|
||||
- Fix: Issue 107
|
||||
|
||||
|
||||
v 2.0.8 [30-Oct-2023]
|
||||
---------------------
|
||||
- Fix: Permitir generar CFDI de egreso para facturas globales sin datos globales.
|
||||
|
|
|
@ -549,7 +549,7 @@ class AppDocumentos(object):
|
|||
if not type_doc in ('pdf', 'pre', 'tpdf', 'pdfpago', 'html', 'nompdf'):
|
||||
resp.append_header('Content-Disposition',
|
||||
'attachment; filename={}'.format(file_name))
|
||||
if type_doc in ('pdf', 'nompdf'):
|
||||
if type_doc in ('pdf', 'nompdf', 'pdfpago'):
|
||||
resp.append_header('Content-Disposition',
|
||||
'inline; filename={}'.format(file_name))
|
||||
resp.content_type = content_type
|
||||
|
|
|
@ -9505,6 +9505,18 @@ class CfdiNomina(BaseModel):
|
|||
if msg:
|
||||
return {}, msg
|
||||
|
||||
if isinstance(row['fecha_pago'], str):
|
||||
msg = f"La Fecha de Pago debe ser una fecha: {row['fecha_pago']}"
|
||||
return {}, msg
|
||||
|
||||
if isinstance(row['fecha_inicial_pago'], str):
|
||||
msg = f"La Fecha Inicial de Pago debe ser una fecha: {row['fecha_inicial_pago']}"
|
||||
return {}, msg
|
||||
|
||||
if isinstance(row['fecha_final_pago'], str):
|
||||
msg = f"La Fecha Final de Pago debe ser una fecha: {row['fecha_final_pago']}"
|
||||
return {}, msg
|
||||
|
||||
data['serie'] = self._get_serie(self)
|
||||
data['folio'] = self._get_folio(self, data['serie'])
|
||||
data['forma_pago'] = DEFAULT_SAT_NOMINA['FORMA_PAGO']
|
||||
|
|
|
@ -39,7 +39,7 @@ except ImportError:
|
|||
|
||||
|
||||
DEBUG = DEBUG
|
||||
VERSION = '2.0.8'
|
||||
VERSION = '2.0.9'
|
||||
|
||||
EMAIL_SUPPORT = ('soporte@empresalibre.mx',)
|
||||
TITLE_APP = '{} v{}'.format(TITLE_APP, VERSION)
|
||||
|
|
Loading…
Reference in New Issue