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.
- package/lib/modules.js +5 -5
- 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 (
|
|
2399
|
+
if (search_string && table_name) {
|
|
2400
2400
|
if (table_name != "devices" && is_pnrr != 1 && is_dismissione != 1) {
|
|
2401
|
-
query += " where Inventario = '" +
|
|
2402
|
-
query += " Precedente = '" +
|
|
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,
|
|
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,
|
|
2426
|
+
query = getBeniDaInventariOnDescriptionMySQL(table_name, search_string, include_imp, is_pnrr, is_dismissione);
|
|
2427
2427
|
break;
|
|
2428
2428
|
}
|
|
2429
2429
|
}
|