forked from elmau/empresa-libre
commit
ce0e960534
|
@ -1,3 +1,8 @@
|
||||||
|
v 1.31.1 [28-ago-2019]
|
||||||
|
----------------------
|
||||||
|
- Error: Al agregar nuevo impuesto #369
|
||||||
|
|
||||||
|
|
||||||
v 1.31.0 [23-abr-2019]
|
v 1.31.0 [23-abr-2019]
|
||||||
----------------------
|
----------------------
|
||||||
- Error: Validar cantidad o valor unitario cero en tickets
|
- Error: Validar cantidad o valor unitario cero en tickets
|
||||||
|
|
|
@ -19,7 +19,7 @@ contratar: administracion ARROBA empresalibre.net
|
||||||
|
|
||||||
* Servidor web, recomendado Nginx
|
* Servidor web, recomendado Nginx
|
||||||
* uwsgi
|
* uwsgi
|
||||||
* python3
|
* python3.6+
|
||||||
* xsltproc
|
* xsltproc
|
||||||
* openssl
|
* openssl
|
||||||
* xmlsec
|
* xmlsec
|
||||||
|
|
|
@ -3663,6 +3663,8 @@ class Facturas(BaseModel):
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def validate_count_partners(cls, ids):
|
def validate_count_partners(cls, ids):
|
||||||
|
"""Validate if invoices IDs are of unique client"""
|
||||||
|
|
||||||
filters = (Facturas.id.in_(tuple(ids.keys())))
|
filters = (Facturas.id.in_(tuple(ids.keys())))
|
||||||
partners = (Facturas.select(fn.COUNT(Socios.rfc))
|
partners = (Facturas.select(fn.COUNT(Socios.rfc))
|
||||||
.where(filters)
|
.where(filters)
|
||||||
|
@ -5275,6 +5277,16 @@ class Facturas(BaseModel):
|
||||||
|
|
||||||
return {'ok': False}
|
return {'ok': False}
|
||||||
|
|
||||||
|
# ~ v2
|
||||||
|
@classmethod
|
||||||
|
def uncancel(cls, id):
|
||||||
|
obj = Facturas.get(Facturas.id==id)
|
||||||
|
if obj.uuid is None:
|
||||||
|
msg = 'La factura no esta timbrada'
|
||||||
|
return {'ok': False, 'msg': msg}
|
||||||
|
|
||||||
|
return
|
||||||
|
|
||||||
|
|
||||||
class PreFacturas(BaseModel):
|
class PreFacturas(BaseModel):
|
||||||
cliente = ForeignKeyField(Socios)
|
cliente = ForeignKeyField(Socios)
|
||||||
|
@ -9974,6 +9986,8 @@ def _exportar_documentos():
|
||||||
if not month:
|
if not month:
|
||||||
month = str(n.month)
|
month = str(n.month)
|
||||||
|
|
||||||
|
without_stamp = []
|
||||||
|
|
||||||
filters = {
|
filters = {
|
||||||
'year': year,
|
'year': year,
|
||||||
'month': month,
|
'month': month,
|
||||||
|
@ -9986,6 +10000,8 @@ def _exportar_documentos():
|
||||||
i+1, t, row['serie'], row['folio'])
|
i+1, t, row['serie'], row['folio'])
|
||||||
log.info(msg)
|
log.info(msg)
|
||||||
_, name = Facturas.get_xml(row['id'])
|
_, name = Facturas.get_xml(row['id'])
|
||||||
|
if not row['uuid']:
|
||||||
|
without_stamp.append(f"{row['serie']}-{row['folio']}")
|
||||||
msg = '\tXML extraido...'
|
msg = '\tXML extraido...'
|
||||||
log.info(msg)
|
log.info(msg)
|
||||||
name = name[:-3] + 'pdf'
|
name = name[:-3] + 'pdf'
|
||||||
|
@ -9998,6 +10014,8 @@ def _exportar_documentos():
|
||||||
log.info(msg)
|
log.info(msg)
|
||||||
|
|
||||||
log.info('Documentos exportados...')
|
log.info('Documentos exportados...')
|
||||||
|
for i in without_stamp:
|
||||||
|
log.info(i)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -47,7 +47,7 @@ except ImportError:
|
||||||
|
|
||||||
|
|
||||||
DEBUG = DEBUG
|
DEBUG = DEBUG
|
||||||
VERSION = '1.31.0'
|
VERSION = '1.31.1'
|
||||||
EMAIL_SUPPORT = ('soporte@empresalibre.mx',)
|
EMAIL_SUPPORT = ('soporte@empresalibre.mx',)
|
||||||
TITLE_APP = '{} v{}'.format(TITLE_APP, VERSION)
|
TITLE_APP = '{} v{}'.format(TITLE_APP, VERSION)
|
||||||
|
|
||||||
|
|
|
@ -1640,7 +1640,7 @@ function cmd_agregar_impuesto_click(){
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if(impuesto='ISR' || tasa > 0){
|
if(impuesto=='ISR' && tasa > 0){
|
||||||
msg = 'El impuesto ISR debe ser tipo Retención'
|
msg = 'El impuesto ISR debe ser tipo Retención'
|
||||||
msg_error(msg)
|
msg_error(msg)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue