alsmanager_lib 1.0.60 → 1.0.61

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 +5 -5
  2. package/package.json +1 -1
package/lib/modules.js CHANGED
@@ -2396,10 +2396,10 @@ function getBeniDaInventariOnDescriptionMySQL(table_name, search_string, include
2396
2396
  query += "from :table_name imp ";
2397
2397
  }
2398
2398
  }
2399
- if (inv_code && table_name) {
2399
+ if (search_string && table_name) {
2400
2400
  if (table_name != "devices" && is_pnrr != 1 && is_dismissione != 1) {
2401
- query += " where Inventario = '" + inv_code +"' or ";
2402
- query += " Precedente = '" + inv_code +"' ";
2401
+ query += " where Inventario = '" + search_string +"' or ";
2402
+ query += " Precedente = '" + search_string +"' ";
2403
2403
  if (!include_imp || include_imp == 0) {
2404
2404
  query += "and d.id is null"
2405
2405
  }
@@ -2420,10 +2420,10 @@ function getBeniDaInventariOnDescription(db_used, table_name, search_string, inc
2420
2420
  if (db_used) {
2421
2421
  switch (db_used) {
2422
2422
  case 'SQLITE':
2423
- query = getBeniDaInventariOnDescriptionSQLite(table_name, inv_code, include_imp, is_pnrr, is_dismissione);
2423
+ query = getBeniDaInventariOnDescriptionSQLite(table_name, search_string, include_imp, is_pnrr, is_dismissione);
2424
2424
  break;
2425
2425
  case 'MYSQL':
2426
- query = getBeniDaInventariOnDescriptionMySQL(table_name, inv_code, include_imp, is_pnrr, is_dismissione);
2426
+ query = getBeniDaInventariOnDescriptionMySQL(table_name, search_string, include_imp, is_pnrr, is_dismissione);
2427
2427
  break;
2428
2428
  }
2429
2429
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "alsmanager_lib",
3
- "version": "1.0.60",
3
+ "version": "1.0.61",
4
4
  "description": "Funzioni per ALSManager",
5
5
  "license": "ISC",
6
6
  "author": "Luca Cattani",