alsmanager_lib 2.0.25 → 2.0.26

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 +8 -8
  2. package/package.json +1 -1
package/lib/modules.js CHANGED
@@ -3368,7 +3368,7 @@ function getBeniDaInventariNonAllocatiSQLite(table_name, is_pnrr, is_dismissione
3368
3368
  query += "from " + table_name + " imp ";
3369
3369
  query += "left join devices d on imp.inv_ict3 = d.inv_ict3_number "
3370
3370
  query += "left join device_site ds on d.id = ds.id_device "
3371
- query += "where ds.id is null and d.id is not null"
3371
+ query += "where ds.id_site is null and d.id is not null"
3372
3372
  }
3373
3373
  else if (table_name == "devices") {
3374
3374
  query = getDevicesSelectForInventarioRawSQLite(inv_code);
@@ -3383,7 +3383,7 @@ function getBeniDaInventariNonAllocatiSQLite(table_name, is_pnrr, is_dismissione
3383
3383
  query += "from " + table_name + " imp ";
3384
3384
  query += "left join devices d on imp.inventario = d.inv_ict3_number "
3385
3385
  query += "left join device_site ds on d.id = ds.id_device "
3386
- query += "where ds.id is null and d.id is not null"
3386
+ query += "where ds.id_site is null and d.id is not null"
3387
3387
  }
3388
3388
  else if (is_dismissione == 1) {
3389
3389
  query = "Select ";
@@ -3395,7 +3395,7 @@ function getBeniDaInventariNonAllocatiSQLite(table_name, is_pnrr, is_dismissione
3395
3395
  query += "from " + table_name + " imp ";
3396
3396
  query += "left join devices d on imp.inv_ict3 = d.inv_ict3_number "
3397
3397
  query += "left join device_site ds on d.id = ds.id_device "
3398
- query += "where ds.id is null and d.id is not null"
3398
+ query += "where ds.id_site is null and d.id is not null"
3399
3399
  }
3400
3400
  else {
3401
3401
  query = "Select ";
@@ -3414,7 +3414,7 @@ function getBeniDaInventariNonAllocatiSQLite(table_name, is_pnrr, is_dismissione
3414
3414
  query += "from " + table_name + " imp ";
3415
3415
  query += "left join devices d on imp.inv_ict3 = d.inv_ict3_number "
3416
3416
  query += "left join device_site ds on d.id = ds.id_device "
3417
- query += "where ds.id is null and d.id is not null"
3417
+ query += "where ds.id_site is null and d.id is not null"
3418
3418
  }
3419
3419
  }
3420
3420
  return query;
@@ -3439,7 +3439,7 @@ function getBeniDaInventariNonAllocatiMySQL(table_name, is_pnrr, is_dismissione)
3439
3439
  query += "from :table_name imp ";
3440
3440
  query += "left join devices d on imp.inv_ict3 = d.inv_ict3_number "
3441
3441
  query += "left join device_site ds on d.id = ds.id_device "
3442
- query += "where ds.id is null and d.id is not null"
3442
+ query += "where ds.id_site is null and d.id is not null"
3443
3443
  }
3444
3444
  else if (table_name == "devices") {
3445
3445
  query = getDevicesSelectForInventarioRawMySQL(inv_code);
@@ -3454,7 +3454,7 @@ function getBeniDaInventariNonAllocatiMySQL(table_name, is_pnrr, is_dismissione)
3454
3454
  query += "from :table_name imp ";
3455
3455
  query += "left join devices d on imp.inventario = d.inv_ict3_number "
3456
3456
  query += "left join device_site ds on d.id = ds.id_device "
3457
- query += "where ds.id is null and d.id is not null"
3457
+ query += "where ds.id_site is null and d.id is not null"
3458
3458
  }
3459
3459
  else if (is_dismissione == 1) {
3460
3460
  query = "Select ";
@@ -3466,7 +3466,7 @@ function getBeniDaInventariNonAllocatiMySQL(table_name, is_pnrr, is_dismissione)
3466
3466
  query += "from :table_name imp ";
3467
3467
  query += "left join devices d on imp.inv_ict3 = d.inv_ict3_number "
3468
3468
  query += "left join device_site ds on d.id = ds.id_device "
3469
- query += "where ds.id is null and d.id is not null"
3469
+ query += "where ds.id_site is null and d.id is not null"
3470
3470
  }
3471
3471
  else {
3472
3472
  query = "Select ";
@@ -3485,7 +3485,7 @@ function getBeniDaInventariNonAllocatiMySQL(table_name, is_pnrr, is_dismissione)
3485
3485
  query += "from :table_name imp ";
3486
3486
  query += "left join devices d on imp.inv_ict3 = d.inv_ict3_number "
3487
3487
  query += "left join device_site ds on d.id = ds.id_device "
3488
- query += "where ds.id is null and d.id is not null"
3488
+ query += "where ds.id_site is null and d.id is not null"
3489
3489
  }
3490
3490
  }
3491
3491
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "alsmanager_lib",
3
- "version": "2.0.25",
3
+ "version": "2.0.26",
4
4
  "description": "Funzioni per ALSManager",
5
5
  "license": "ISC",
6
6
  "author": "Luca Cattani",