Fix - In filter invoice by dates
This commit is contained in:
parent
27a29d331c
commit
aad48639ee
|
@ -1,3 +1,8 @@
|
||||||
|
v 1.28.1 [04-mar-2019]
|
||||||
|
----------------------
|
||||||
|
- Error: Al buscar facturas por fechas
|
||||||
|
|
||||||
|
|
||||||
v 1.28.0 [17-feb-2019]
|
v 1.28.0 [17-feb-2019]
|
||||||
----------------------
|
----------------------
|
||||||
- Mejora: Manejo de empaques para mensajeria
|
- Mejora: Manejo de empaques para mensajeria
|
||||||
|
|
|
@ -3720,7 +3720,7 @@ class Facturas(BaseModel):
|
||||||
return data
|
return data
|
||||||
|
|
||||||
def _get_filters(self, values):
|
def _get_filters(self, values):
|
||||||
if 'start' in values:
|
if 'start' in values and 'end' in values:
|
||||||
filters = Facturas.fecha.between(
|
filters = Facturas.fecha.between(
|
||||||
utils.parse_date(values['start']),
|
utils.parse_date(values['start']),
|
||||||
utils.parse_date(values['end'], True)
|
utils.parse_date(values['end'], True)
|
||||||
|
|
|
@ -47,7 +47,7 @@ except ImportError:
|
||||||
|
|
||||||
|
|
||||||
DEBUG = DEBUG
|
DEBUG = DEBUG
|
||||||
VERSION = '1.28.0'
|
VERSION = '1.28.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)
|
||||||
|
|
||||||
|
|
|
@ -1383,6 +1383,12 @@ function cmd_invoice_cancelar_click(){
|
||||||
|
|
||||||
function get_filters_invoices(){
|
function get_filters_invoices(){
|
||||||
var filters = $$('filter_dates').getValue()
|
var filters = $$('filter_dates').getValue()
|
||||||
|
|
||||||
|
if(filters['start'] && !filters['end']){
|
||||||
|
msg = 'No seleccionaste la fecha final'
|
||||||
|
msg_error(msg)
|
||||||
|
}
|
||||||
|
|
||||||
filters['year'] = $$('filter_year').getValue()
|
filters['year'] = $$('filter_year').getValue()
|
||||||
filters['month'] = $$('filter_month').getValue()
|
filters['month'] = $$('filter_month').getValue()
|
||||||
filters['client'] = $$('grid_invoices').getFilter('cliente').value
|
filters['client'] = $$('grid_invoices').getFilter('cliente').value
|
||||||
|
@ -2296,7 +2302,6 @@ function search_by(value){
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue