@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.
@@ -6934,14 +6934,14 @@ class FHGridComponent {
6934
6934
  if (add_end)
6935
6935
  filter_v = filter_v + ' and ';
6936
6936
  filter_v = filter_v + ' (';
6937
- if (obj_filtro.dateFrom != null && obj_filtro.dateTo != null)
6938
- filter_v = filter_v + key + ">=" + this.uti_s.sql_date(this.uti_s.string2date(obj_filtro.dateFrom, 1)) + "";
6939
- if (obj_filtro.dateTo != null) {
6937
+ if (obj_filtro.dateFrom != null && obj_filtro.dateTo != null && this.uti_s.sql_date(this.uti_s.string2date(obj_filtro.dateFrom, 1)) != 'dbnull')
6938
+ filter_v = filter_v + key + ">=" + this.uti_s.sql_date(this.uti_s.string2date(obj_filtro.dateFrom, 1));
6939
+ if (obj_filtro.dateTo != null && this.uti_s.sql_date(this.uti_s.string2date(obj_filtro.dateTo, 1)) != 'dbnull') {
6940
6940
  if (obj_filtro.dateFrom != null)
6941
6941
  filter_v = filter_v + ' and ';
6942
6942
  filter_v = filter_v + key + "<=" + this.uti_s.sql_date(this.uti_s.string2date(obj_filtro.dateTo, 1)) + "";
6943
6943
  }
6944
- else if (obj_filtro.dateFrom != null) {
6944
+ else if (obj_filtro.dateFrom != null && this.uti_s.sql_date(this.uti_s.string2date(obj_filtro.dateFrom, 1)) != 'dbnull') {
6945
6945
  if (obj_filtro.type == "greaterThan")
6946
6946
  filter_v = filter_v + ' ' + key + ' >= ' + this.uti_s.sql_date(this.uti_s.string2date(obj_filtro.dateFrom, 1)) + '';
6947
6947
  if (obj_filtro.type == "equals")