alsmanager_lib 3.0.135 → 3.0.136
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 +16 -16
- package/package.json +1 -1
package/lib/modules.js
CHANGED
|
@@ -4508,7 +4508,7 @@ function getDevicesWithProperties(db_used, id_device) {
|
|
|
4508
4508
|
function getBeniDaInventariSQLite(table_name, inv_code, include_imp, is_pnrr, is_dismissione) {
|
|
4509
4509
|
var query = "";
|
|
4510
4510
|
if (table_name && table_name != '') {
|
|
4511
|
-
if (table_name
|
|
4511
|
+
if (table_name.startsWith("ImportRevisione")) {
|
|
4512
4512
|
query = "Select ";
|
|
4513
4513
|
query += "inv_ict3 as Inventario, ";
|
|
4514
4514
|
query += "ex_inv as Precedente, ";
|
|
@@ -4584,7 +4584,7 @@ function getBeniDaInventariSQLite(table_name, inv_code, include_imp, is_pnrr, is
|
|
|
4584
4584
|
|
|
4585
4585
|
function getBeniDaInventariMySQL(table_name, inv_code, include_imp, is_pnrr, is_dismissione) {
|
|
4586
4586
|
if (table_name && table_name != '') {
|
|
4587
|
-
if (table_name
|
|
4587
|
+
if (table_name.startsWith("ImportRevisione")) {
|
|
4588
4588
|
query = "Select ";
|
|
4589
4589
|
query += "inv_ict3 as Inventario, ";
|
|
4590
4590
|
query += "ex_inv as Precedente, ";
|
|
@@ -4679,7 +4679,7 @@ function getBeniDaInventari(db_used, table_name, inv_code, include_imp, is_pnrr,
|
|
|
4679
4679
|
function getBeniDaInventariNonAllocatiSQLite(table_name, is_pnrr, is_dismissione) {
|
|
4680
4680
|
var query = "";
|
|
4681
4681
|
if (table_name && table_name != '') {
|
|
4682
|
-
if (table_name
|
|
4682
|
+
if (table_name.startsWith("ImportRevisione")) {
|
|
4683
4683
|
query = "Select ";
|
|
4684
4684
|
query += "inv_ict3 as Inventario, ";
|
|
4685
4685
|
query += "ex_inv as Precedente, ";
|
|
@@ -4750,7 +4750,7 @@ function getBeniDaInventariNonAllocatiSQLite(table_name, is_pnrr, is_dismissione
|
|
|
4750
4750
|
}
|
|
4751
4751
|
function getBeniDaInventariNonAllocatiMySQL(table_name, is_pnrr, is_dismissione) {
|
|
4752
4752
|
if (table_name && table_name != '') {
|
|
4753
|
-
if (table_name
|
|
4753
|
+
if (table_name.startsWith("ImportRevisione")) {
|
|
4754
4754
|
query = "Select ";
|
|
4755
4755
|
query += "inv_ict3 as Inventario, ";
|
|
4756
4756
|
query += "ex_inv as Precedente, ";
|
|
@@ -4843,7 +4843,7 @@ function getBeniDaInventariNonAllocati(db_used, table_name, is_pnrr, is_dismissi
|
|
|
4843
4843
|
function getBeniDaInventariOnDescriptionSQLite(table_name, search_string, include_imp, is_pnrr, is_dismissione) {
|
|
4844
4844
|
var query = "";
|
|
4845
4845
|
if (table_name && table_name != '') {
|
|
4846
|
-
if (table_name
|
|
4846
|
+
if (table_name.startsWith("ImportRevisione")) {
|
|
4847
4847
|
query = "Select ";
|
|
4848
4848
|
query += "inv_ict3 as Inventario, ";
|
|
4849
4849
|
query += "ex_inv as Precedente, ";
|
|
@@ -4918,7 +4918,7 @@ function getBeniDaInventariOnDescriptionSQLite(table_name, search_string, includ
|
|
|
4918
4918
|
|
|
4919
4919
|
function getBeniDaInventariOnDescriptionMySQL(table_name, search_string, include_imp, is_pnrr, is_dismissione) {
|
|
4920
4920
|
if (table_name && table_name != '') {
|
|
4921
|
-
if (table_name
|
|
4921
|
+
if (table_name.startsWith("ImportRevisione")) {
|
|
4922
4922
|
query = "Select ";
|
|
4923
4923
|
query += "inv_ict3 as Inventario, ";
|
|
4924
4924
|
query += "ex_inv as Precedente, ";
|
|
@@ -5017,7 +5017,7 @@ function getBeniDaInventariOnDescription(db_used, table_name, search_string, inc
|
|
|
5017
5017
|
function selectInventariPerIntervalloSQLite(table_name, is_pnrr, is_dismissione, code_da, code_a) {
|
|
5018
5018
|
var query = "";
|
|
5019
5019
|
if (table_name && table_name != '') {
|
|
5020
|
-
if (table_name
|
|
5020
|
+
if (table_name.startsWith("ImportRevisione")) {
|
|
5021
5021
|
query = "Select ";
|
|
5022
5022
|
query += "inv_ict3 as Inventario, ";
|
|
5023
5023
|
query += "concat(inv_ict3, ' - ', descrizione_bene, ' - ', marca, ' - ', modello_serie) as Descrizione ";
|
|
@@ -5053,7 +5053,7 @@ function selectInventariPerIntervalloSQLite(table_name, is_pnrr, is_dismissione,
|
|
|
5053
5053
|
function selectInventariPerIntervalloMySQL() {
|
|
5054
5054
|
var query = "";
|
|
5055
5055
|
if (table_name && table_name != '') {
|
|
5056
|
-
if (table_name
|
|
5056
|
+
if (table_name.startsWith("ImportRevisione")) {
|
|
5057
5057
|
query = "Select ";
|
|
5058
5058
|
query += "inv_ict3 as Inventario, ";
|
|
5059
5059
|
query += "concat(inv_ict3, ' - ', descrizione_bene, ' - ', marca, ' - ', modello_serie) as Descrizione ";
|
|
@@ -5109,7 +5109,7 @@ function selectInventariPerIntervallo(db_used,table_name, is_pnrr, is_dismission
|
|
|
5109
5109
|
function getBeniAcquisitiSQLite(table_name, is_pnrr, is_dismissione) {
|
|
5110
5110
|
var query = "";
|
|
5111
5111
|
if (table_name) {
|
|
5112
|
-
if (table_name
|
|
5112
|
+
if (table_name.startsWith("ImportRevisione")) {
|
|
5113
5113
|
query = "Select ";
|
|
5114
5114
|
query += "inv_ict3 as Inventario, ";
|
|
5115
5115
|
query += "ex_inv as Precedente, ";
|
|
@@ -5170,7 +5170,7 @@ function getBeniAcquisitiSQLite(table_name, is_pnrr, is_dismissione) {
|
|
|
5170
5170
|
function getBeniAcquisitiMySQL(table_name, is_pnrr, is_dismissione) {
|
|
5171
5171
|
var query = "";
|
|
5172
5172
|
if (table_name) {
|
|
5173
|
-
if (table_name
|
|
5173
|
+
if (table_name.startsWith("ImportRevisione")) {
|
|
5174
5174
|
query = "Select ";
|
|
5175
5175
|
query += "inv_ict3 as Inventario, ";
|
|
5176
5176
|
query += "ex_inv as Precedente, ";
|
|
@@ -5252,7 +5252,7 @@ function insertDeviceMassivoSQLite(table_name,lista_inv) {
|
|
|
5252
5252
|
var query = "";
|
|
5253
5253
|
var insert_sql = "insert into devices (inv_ict3_number, inv_tn_number, manifacturer, model, note) "
|
|
5254
5254
|
if (table_name && table_name != '') {
|
|
5255
|
-
if (inv_info.tabella
|
|
5255
|
+
if (inv_info.tabella.startsWith("ImportRevisione")) {
|
|
5256
5256
|
query = "Select ";
|
|
5257
5257
|
query += "trim(inv_ict3) as Inventario, ";
|
|
5258
5258
|
query += "trim(ex_inv) as ex_inventario, ";
|
|
@@ -5294,7 +5294,7 @@ function insertDeviceMassivoMySQL(table_name,lista_inv) {
|
|
|
5294
5294
|
var query = "";
|
|
5295
5295
|
var insert_sql = "insert into devices (inv_ict3_number, inv_tn_number, manifacturer, model, note) "
|
|
5296
5296
|
if (table_name && table_name != '') {
|
|
5297
|
-
if (inv_info.tabella
|
|
5297
|
+
if (inv_info.tabella.startsWith("ImportRevisione")) {
|
|
5298
5298
|
query = "Select ";
|
|
5299
5299
|
query += "trim(inv_ict3) as Inventario, ";
|
|
5300
5300
|
query += "trim(ex_inv) as ex_inventario, ";
|
|
@@ -5433,7 +5433,7 @@ function insertDeviceSiteFromInventarioSQLite(table_name, data_in, id_place, id_
|
|
|
5433
5433
|
dp_str = d.getFullYear() + "-" + String((d.getMonth() + 1)).padStart(2, '0') + "-" + String(d.getDate()).padStart(2, '0');
|
|
5434
5434
|
}
|
|
5435
5435
|
|
|
5436
|
-
if (inv_info.tabella
|
|
5436
|
+
if (inv_info.tabella.startsWith("ImportRevisione")) {
|
|
5437
5437
|
query = "Select ";
|
|
5438
5438
|
query += "d.id, ";
|
|
5439
5439
|
query += "'" + id_place + "', ";
|
|
@@ -5486,7 +5486,7 @@ function insertDeviceSiteFromInventarioMySQL() {
|
|
|
5486
5486
|
dp_str = d.getFullYear() + "-" + String((d.getMonth() + 1)).padStart(2, '0') + "-" + String(d.getDate()).padStart(2, '0');
|
|
5487
5487
|
}
|
|
5488
5488
|
|
|
5489
|
-
if (inv_info.tabella
|
|
5489
|
+
if (inv_info.tabella.startsWith("ImportRevisione")) {
|
|
5490
5490
|
query = "Select ";
|
|
5491
5491
|
query += "d.id, ";
|
|
5492
5492
|
query += "':id_place', ";
|
|
@@ -6329,7 +6329,7 @@ function getDevicesSelectForInventarioRawById(db_used, id_device) {
|
|
|
6329
6329
|
function selectBeneDaInventarioSQLite(table_name, inv_code, is_pnrr, is_dismissione) {
|
|
6330
6330
|
var query = "";
|
|
6331
6331
|
if (table_name && inv_code) {
|
|
6332
|
-
if (table_name
|
|
6332
|
+
if (table_name.startsWith("ImportRevisione")) {
|
|
6333
6333
|
query = "Select ";
|
|
6334
6334
|
query += "inv_ict3 as Inventario, ";
|
|
6335
6335
|
query += "ex_inv as Precedente, ";
|
|
@@ -6397,7 +6397,7 @@ function selectBeneDaInventarioSQLite(table_name, inv_code, is_pnrr, is_dismissi
|
|
|
6397
6397
|
function selectBeneDaInventarioMySQL(table_name, inv_code, is_pnrr, is_dismissione) {
|
|
6398
6398
|
var query = "";
|
|
6399
6399
|
if (table_name) {
|
|
6400
|
-
if (
|
|
6400
|
+
if (ttable_name.startsWith("ImportRevisione")) {
|
|
6401
6401
|
query = "Select ";
|
|
6402
6402
|
query += "inv_ict3 as Inventario, ";
|
|
6403
6403
|
query += "ex_inv as Precedente, ";
|