alsmanager_lib 3.0.236 → 3.0.237

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 +4 -4
  2. package/package.json +1 -1
package/lib/modules.js CHANGED
@@ -10018,7 +10018,7 @@ function selectDeviceConsegna(db_used, id_consegna, id_device) {
10018
10018
 
10019
10019
 
10020
10020
  function selectDeviceInDepositoSQLite(inv_code) {
10021
- var query = "SELECT d.id, d.type as Tipo, d.manifacturer as Marca, d.model as Modello, ";
10021
+ var query = "SELECT distinct d.id, d.type as Tipo, d.manifacturer as Marca, d.model as Modello, ";
10022
10022
  query += "case ";
10023
10023
  query += "when inv_ict3_number != '' and inv_ict3_number is not null then inv_ict3_number ";
10024
10024
  query += "when inv_pnrr_number != '' and inv_pnrr_number is not null then inv_pnrr_number ";
@@ -10040,7 +10040,7 @@ function selectDeviceInDepositoSQLite(inv_code) {
10040
10040
  return query;
10041
10041
  }
10042
10042
  function selectDeviceInDepositoMySQL(inv_code) {
10043
- var query = "SELECT d.id, d.type as Tipo, d.manifacturer as Marca, d.model as Modello, ";
10043
+ var query = "SELECT distinct d.id, d.type as Tipo, d.manifacturer as Marca, d.model as Modello, ";
10044
10044
  query += "case ";
10045
10045
  query += "when inv_ict3_number != '' and inv_ict3_number is not null then inv_ict3_number ";
10046
10046
  query += "when inv_pnrr_number != '' and inv_pnrr_number is not null then inv_pnrr_number ";
@@ -10181,7 +10181,7 @@ function selectSoftwareConsegna(db_used, id_consegna, id_software) {
10181
10181
  }
10182
10182
 
10183
10183
  function selectSoftwaresInDepositoSQLite(inv_code) {
10184
- var query = "SELECT s.id, s.support, s.platform, s.version, s.license_type, s.maker, s.model, ";
10184
+ var query = "SELECT distinct s.id, s.support, s.platform, s.version, s.license_type, s.maker, s.model, ";
10185
10185
  query += "case ";
10186
10186
  query += "when s.inv_ict3_number != '' and s.inv_ict3_number is not null then s.inv_ict3_number ";
10187
10187
  query += "when s.serial_no != '' and s.serial_no is not null then concat(s.serial_no,'(S/N)') ";
@@ -10195,7 +10195,7 @@ function selectSoftwaresInDepositoSQLite(inv_code) {
10195
10195
  return query;
10196
10196
  }
10197
10197
  function selectSoftwaresInDepositoMySQL(inv_code) {
10198
- var query = "SELECT s.id, s.support, s.platform, s.version, s.license_type, s.maker, s.model, ";
10198
+ var query = "SELECT distinct s.id, s.support, s.platform, s.version, s.license_type, s.maker, s.model, ";
10199
10199
  query += "case ";
10200
10200
  query += "when s.inv_ict3_number != '' and s.inv_ict3_number is not null then s.inv_ict3_number ";
10201
10201
  query += "when s.serial_no != '' and s.serial_no is not null then concat(s.serial_no,'(S/N)') ";
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.236",
7
+ "version": "3.0.237",
8
8
  "description": "Funzioni per ALSManager",
9
9
  "license": "ISC",
10
10
  "author": "Luca Cattani",