alsmanager_lib 3.0.35 → 3.0.36

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 +3 -3
  2. package/package.json +1 -1
package/lib/modules.js CHANGED
@@ -8168,9 +8168,9 @@ function selectSoftwaresInDepositoSQLite(inv_code) {
8168
8168
  query += "else concat(s.id,'(ID)') ";
8169
8169
  query += "end as Codice ";
8170
8170
  query += "from softwares s ";
8171
- query += "left join consegna_beni cb on d.id = cb.id_bene "
8172
- query += "where (inv_ict3_number = '" + inv_code + "' or ";
8173
- query += "serial_no = '" + inv_code + "')";
8171
+ query += "left join consegna_beni cb on s.id = cb.id_bene "
8172
+ query += "where (s.inv_ict3_number = '" + inv_code + "' or ";
8173
+ query += "s.serial_no = '" + inv_code + "')";
8174
8174
  query += "and (cb.id is null or (cb.tipo_bene = 'SOFTWARE' and cb.stato_restituzione = 2))";
8175
8175
  return query;
8176
8176
  }
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.35",
7
+ "version": "3.0.36",
8
8
  "description": "Funzioni per ALSManager",
9
9
  "license": "ISC",
10
10
  "author": "Luca Cattani",