@fluxhub/fluxhub-lib 1.0.426 → 1.0.427

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7234,14 +7234,14 @@
7234
7234
  if (add_end)
7235
7235
  filter_v = filter_v + ' and ';
7236
7236
  filter_v = filter_v + ' (';
7237
- if (obj_filtro.dateFrom != null && obj_filtro.dateTo != null)
7238
- filter_v = filter_v + key + ">=" + this.uti_s.sql_date(this.uti_s.string2date(obj_filtro.dateFrom, 1)) + "";
7239
- if (obj_filtro.dateTo != null) {
7237
+ if (obj_filtro.dateFrom != null && obj_filtro.dateTo != null && this.uti_s.sql_date(this.uti_s.string2date(obj_filtro.dateFrom, 1)) != 'dbnull')
7238
+ filter_v = filter_v + key + ">=" + this.uti_s.sql_date(this.uti_s.string2date(obj_filtro.dateFrom, 1));
7239
+ if (obj_filtro.dateTo != null && this.uti_s.sql_date(this.uti_s.string2date(obj_filtro.dateTo, 1)) != 'dbnull') {
7240
7240
  if (obj_filtro.dateFrom != null)
7241
7241
  filter_v = filter_v + ' and ';
7242
7242
  filter_v = filter_v + key + "<=" + this.uti_s.sql_date(this.uti_s.string2date(obj_filtro.dateTo, 1)) + "";
7243
7243
  }
7244
- else if (obj_filtro.dateFrom != null) {
7244
+ else if (obj_filtro.dateFrom != null && this.uti_s.sql_date(this.uti_s.string2date(obj_filtro.dateFrom, 1)) != 'dbnull') {
7245
7245
  if (obj_filtro.type == "greaterThan")
7246
7246
  filter_v = filter_v + ' ' + key + ' >= ' + this.uti_s.sql_date(this.uti_s.string2date(obj_filtro.dateFrom, 1)) + '';
7247
7247
  if (obj_filtro.type == "equals")