alsmanager_lib 2.0.105 → 2.0.106

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 +2 -2
  2. package/package.json +1 -1
package/lib/modules.js CHANGED
@@ -8300,7 +8300,7 @@ function queryDocumentsDismissioneIdDevice(db_used, id_device) {
8300
8300
 
8301
8301
  // Manage Docs
8302
8302
  function queryDocumentsIdDeviceSQLite(id_device) {
8303
- var query = "select c.id, c.tipo, c.data_emissione, c.descrizione, ";
8303
+ var query = "select distinct c.id, c.tipo, c.data_emissione, c.descrizione, ";
8304
8304
  query += "case ";
8305
8305
  query += "when is_collaudo = 1 then 'Collaudo' ";
8306
8306
  query += "when is_acquisto = 1 then 'Acquisto' ";
@@ -8312,7 +8312,7 @@ function queryDocumentsIdDeviceSQLite(id_device) {
8312
8312
  return query;
8313
8313
  }
8314
8314
  function queryDocumentsIdDeviceMySQL(id_device) {
8315
- var query = "select c.id, c.tipo, c.data_emissione, c.descrizione, ";
8315
+ var query = "select distinct c.id, c.tipo, c.data_emissione, c.descrizione, ";
8316
8316
  query += "case ";
8317
8317
  query += "when is_collaudo = 1 then 'Collaudo' ";
8318
8318
  query += "when is_acquisto = 1 then 'Acquisto' ";
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  ".": "./lib/modules.js",
5
5
  "./dbconn": "./lib/dbconn.js"
6
6
  },
7
- "version": "2.0.105",
7
+ "version": "2.0.106",
8
8
  "description": "Funzioni per ALSManager",
9
9
  "license": "ISC",
10
10
  "author": "Luca Cattani",