alsmanager_lib 3.0.137 → 3.0.139

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 +11 -0
  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) {
@@ -4639,6 +4644,7 @@ function getBeniDaInventariMySQL(table_name, inv_code, include_imp, is_pnrr, is_
4639
4644
  query += "from :table_name imp ";
4640
4645
  }
4641
4646
  }
4647
+
4642
4648
  if (inv_code && table_name) {
4643
4649
  if (table_name != "devices" && is_pnrr != 1 && is_dismissione != 1) {
4644
4650
  query += " where Inventario = '" + inv_code +"' or ";
@@ -4646,6 +4652,11 @@ function getBeniDaInventariMySQL(table_name, inv_code, include_imp, is_pnrr, is_
4646
4652
  if (!include_imp || include_imp == 0) {
4647
4653
  query += "and d.id is null"
4648
4654
  }
4655
+ }
4656
+ else {
4657
+ if (is_dismissione == 1) {
4658
+ query += " where inv_ict3 = '" + inv_code + "' ";
4659
+ }
4649
4660
  }
4650
4661
  }
4651
4662
  else {
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.137",
7
+ "version": "3.0.139",
8
8
  "description": "Funzioni per ALSManager",
9
9
  "license": "ISC",
10
10
  "author": "Luca Cattani",