alsmanager_lib 3.0.134 → 3.0.135

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.
Files changed (2) hide show
  1. package/lib/modules.js +7 -4
  2. package/package.json +1 -1
package/lib/modules.js CHANGED
@@ -2822,14 +2822,15 @@ function queryOSByFilter(tipo, date_ref) {
2822
2822
  var query = "select distinct dt.os as os from devices d ";
2823
2823
  query += "left join device_pc dt on d.id = dt.id_device ";
2824
2824
  query += "where d.type = '" + tipo + "' ";
2825
- query += "order dt.os";
2825
+ query += "and dt.os is not null ";
2826
+ query += "order by dt.os";
2826
2827
  return query;
2827
2828
  }
2828
2829
 
2829
2830
  function queryOSVersionByFilter(os) {
2830
2831
  var query = "select distinct dt.os_version as version from device_pc dt ";
2831
2832
  query += "where dt.os = '" + os + "' ";
2832
- query += "order dt.os_version";
2833
+ query += "order by dt.os_version";
2833
2834
  return query;
2834
2835
  }
2835
2836
 
@@ -6514,8 +6515,9 @@ function checkEsistenzaInInventario(db_used,codice) {
6514
6515
 
6515
6516
  function selectTabelleInventariComboSQLite(only_dismiss, only_pnrr) {
6516
6517
  var query = "select name, description from table_inventari "
6518
+ query += "where is_active = 1 ";
6517
6519
  if ((only_dismiss && only_dismiss == 1)|| (only_pnrr && only_pnrr == 1)) {
6518
- query += "where ";
6520
+ query += "and ";
6519
6521
  if (only_dismiss && only_dismiss == 1) {
6520
6522
  query += "is_dismissione = 1";
6521
6523
  if (only_pnrr && only_pnrr == 1)
@@ -6530,8 +6532,9 @@ function selectTabelleInventariComboSQLite(only_dismiss, only_pnrr) {
6530
6532
 
6531
6533
  function selectTabelleInventariComboMySQL(only_dismiss, only_pnrr) {
6532
6534
  var query = "select name, description from table_inventari "
6535
+ query += "where is_active = 1 ";
6533
6536
  if ((only_dismiss && only_dismiss == 1)|| (only_pnrr && only_pnrr == 1)) {
6534
- query += "where ";
6537
+ query += "and ";
6535
6538
  if (only_dismiss && only_dismiss == 1) {
6536
6539
  query += "is_dismissione = 1";
6537
6540
  if (only_pnrr && only_pnrr == 1)
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  ".": "./lib/modules.js",
5
5
  "./dbconn": "./lib/dbconn.js"
6
6
  },
7
- "version": "3.0.134",
7
+ "version": "3.0.135",
8
8
  "description": "Funzioni per ALSManager",
9
9
  "license": "ISC",
10
10
  "author": "Luca Cattani",