alsmanager_lib 3.0.2 → 3.0.3

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 +6 -3
  2. package/package.json +1 -1
package/lib/modules.js CHANGED
@@ -12163,7 +12163,8 @@ function getAltroBeneById(db_used, id_bene) {
12163
12163
  }
12164
12164
 
12165
12165
  function getAltriBeniSQLite(id_type, manifacturer, model, id_site, id_place) {
12166
- var query = "select ab.id, ab.inv_ict3_number, ab.inv_comune_prov, ab.id_type, ab.descrizione, ab.manifacturer, ab.model, ab.note from altri_beni ab ";
12166
+ var query = "select ab.id, ab.inv_ict3_number, ab.inv_comune_prov, a.name as tipo, ab.descrizione, ab.manifacturer, ab.model, ab.note from altri_beni ab ";
12167
+ query += "join altro_tipi a on a.id = ab.id_type "
12167
12168
  if ((id_site && id_site > 0) || (id_place && id_place != '')) {
12168
12169
  query += "left join altri_beni_site s on ab.id = s.id_bene ";
12169
12170
  }
@@ -12197,7 +12198,8 @@ function getAltriBeniSQLite(id_type, manifacturer, model, id_site, id_place) {
12197
12198
  return query;
12198
12199
  }
12199
12200
  function getAltriBeniMySQL(id_type, manifacturer, model, id_site, id_place) {
12200
- var query = "select ab.id, ab.inv_ict3_number, ab.inv_comune_prov, ab.id_type, ab.descrizione, ab.manifacturer, ab.model, note from altri_beni ";
12201
+ var query = "select ab.id, ab.inv_ict3_number, ab.inv_comune_prov, a.name as tipo, ab.descrizione, ab.manifacturer, ab.model, note from altri_beni ";
12202
+ query += "join altro_tipi a on a.id = ab.id_type "
12201
12203
  if ((id_site && id_site > 0) || (id_place && id_place != '')) {
12202
12204
  query += "left join altri_beni_site s on ab.id = s.id_bene ";
12203
12205
  }
@@ -12231,7 +12233,8 @@ function getAltriBeniMySQL(id_type, manifacturer, model, id_site, id_place) {
12231
12233
  return query;
12232
12234
  }
12233
12235
  function getAltriBeniMySQL2(id_type, manifacturer, model, id_site, id_place) {
12234
- var query = "select ab.id, ab.inv_ict3_number, ab.inv_comune_prov, ab.id_type, ab.descrizione, ab.manifacturer, ab.model, ab.note from altri_beni ab ";
12236
+ var query = "select ab.id, ab.inv_ict3_number, ab.inv_comune_prov, a.name as tipo, ab.descrizione, ab.manifacturer, ab.model, ab.note from altri_beni ab ";
12237
+ query += "join altro_tipi a on a.id = ab.id_type "
12235
12238
  if ((id_site && id_site > 0) || (id_place && id_place != '')) {
12236
12239
  query += "left join altri_beni_site s on ab.id = s.id_bene ";
12237
12240
  }
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.2",
7
+ "version": "3.0.3",
8
8
  "description": "Funzioni per ALSManager",
9
9
  "license": "ISC",
10
10
  "author": "Luca Cattani",