alsmanager_lib 3.0.136 → 3.0.138

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 +14 -4
  2. package/package.json +1 -1
package/lib/modules.js CHANGED
@@ -4571,6 +4571,11 @@ function getBeniDaInventariSQLite(table_name, inv_code, include_imp, is_pnrr, is
4571
4571
  query += "and d.id is null"
4572
4572
  }
4573
4573
  }
4574
+ else {
4575
+ if (is_dismissione == 1) {
4576
+ query += " where inv_ict3 = '" + inv_code + "' ";
4577
+ }
4578
+ }
4574
4579
  }
4575
4580
  else {
4576
4581
  if (table_name != "devices" && is_pnrr != 1 && is_dismissione != 1) {
@@ -4646,6 +4651,11 @@ function getBeniDaInventariMySQL(table_name, inv_code, include_imp, is_pnrr, is_
4646
4651
  if (!include_imp || include_imp == 0) {
4647
4652
  query += "and d.id is null"
4648
4653
  }
4654
+ }
4655
+ else {
4656
+ if (is_dismissione == 1) {
4657
+ query += " where inv_ict3 = '" + inv_code + "' ";
4658
+ }
4649
4659
  }
4650
4660
  }
4651
4661
  else {
@@ -6370,8 +6380,8 @@ function selectBeneDaInventarioSQLite(table_name, inv_code, is_pnrr, is_dismissi
6370
6380
  query += "Costo, ";
6371
6381
  query += "Note as 'Note bene' ";
6372
6382
  query += "from " + table_name + " imp ";
6373
- query += " where trim(Inventario) = '" + inv_code + "'"
6374
- query += " group by Inventario";
6383
+ query += " where trim(inv_ict3) = '" + inv_code + "'"
6384
+ query += " group by inv_ict3";
6375
6385
  }
6376
6386
  else {
6377
6387
  query = "Select ";
@@ -6388,7 +6398,7 @@ function selectBeneDaInventarioSQLite(table_name, inv_code, is_pnrr, is_dismissi
6388
6398
  query += "data_scarico as 'Data scarico', ";
6389
6399
  query += "concat(imp.note, ' ', note_2, ' ', note_3) as note_complete ";
6390
6400
  query += " from " + table_name + " imp ";
6391
- query += " where Inventario = '" + inv_code + "'";
6401
+ query += " where inv_ict3 = '" + inv_code + "'";
6392
6402
  }
6393
6403
  }
6394
6404
  return query;
@@ -6439,7 +6449,7 @@ function selectBeneDaInventarioMySQL(table_name, inv_code, is_pnrr, is_dismissio
6439
6449
  query += "Note as 'Note bene' ";
6440
6450
  query += "from TAB_NAME imp ";
6441
6451
  query += " where trim(inv_ict3) = :inv_code "
6442
- query += " group by Inventario";
6452
+ query += " group by inv_ict3";
6443
6453
  }
6444
6454
  else {
6445
6455
  query = "Select ";
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.136",
7
+ "version": "3.0.138",
8
8
  "description": "Funzioni per ALSManager",
9
9
  "license": "ISC",
10
10
  "author": "Luca Cattani",