@fluxhub/fluxhub-lib 9.0.70 → 9.0.71

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.
@@ -6452,18 +6452,21 @@ let FHGridComponent = class FHGridComponent {
6452
6452
  filter_v = filter_v + key + "<=" + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateTo, 5)) + "";
6453
6453
  }
6454
6454
  else if (obj_filtro.dateFrom != null && this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 1)) != 'dbnull') {
6455
+ let q = '';
6455
6456
  if (obj_filtro.type == "greaterThan")
6456
- filter_v = filter_v + ' ' + key + ' >= ' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5)) + '';
6457
+ q = ' ' + key + ' >= ' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5)) + '';
6457
6458
  if (obj_filtro.type == "equals")
6458
- filter_v = filter_v + ' (' + key + ' >=' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5)) + ' and ' + key + ' <=' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5), 'T23:59:00') + ')';
6459
+ q = ' (' + key + ' >=' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5)) + ' and ' + key + ' <=' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5), 'T23:59:00') + ')';
6459
6460
  if (obj_filtro.type == "notEqual")
6460
- filter_v = filter_v + ' ' + key + ' <> ' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5)) + '';
6461
+ q = ' ' + key + ' <> ' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5)) + '';
6461
6462
  if (obj_filtro.type == "lessThan")
6462
- filter_v = filter_v + ' ' + key + ' <= ' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5)) + '';
6463
+ q = ' ' + key + ' <= ' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5)) + '';
6463
6464
  if (obj_filtro.type == "lessThanOrEqual")
6464
- filter_v = filter_v + ' ' + key + ' <= ' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5)) + '';
6465
+ q = ' ' + key + ' <= ' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5)) + '';
6465
6466
  if (obj_filtro.type == "greaterThanOrEqual")
6466
- filter_v = filter_v + ' ' + key + ' >= ' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5)) + '';
6467
+ q = ' ' + key + ' >= ' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5)) + '';
6468
+ console.log(obj_filtro, ' -> ', q);
6469
+ filter_v = filter_v + q;
6467
6470
  }
6468
6471
  filter_v = filter_v + ' )';
6469
6472
  }