alsmanager_lib 3.0.155 → 3.0.156

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 +6 -6
  2. package/package.json +1 -1
package/lib/modules.js CHANGED
@@ -4108,7 +4108,7 @@ function queryDeviceByIdSQLite(id_device) {
4108
4108
  query += "d.manifacturer as Marca, d.model as Modello, ";
4109
4109
  query += "d.inv_ict3_number as Inventario, d.serial_no, ";
4110
4110
  query += "d.inv_tn_number, d.inv_pnrr_number, d.inv_tndigit_number, ";
4111
- query += "d.note, d.num_objects, d.no_inventario, d.peso_g from devices d ";
4111
+ query += "d.note, d.num_objects, d.no_inventario, d.peso_g, d.part_of, d.is_unused from devices d ";
4112
4112
  query += "where d.id = " + id_device;
4113
4113
  return query;
4114
4114
  }
@@ -4117,7 +4117,7 @@ function queryDeviceByIdMySQL(id_device) {
4117
4117
  query += "d.manifacturer as Marca, d.model as Modello, ";
4118
4118
  query += "d.inv_ict3_number as Inventario, d.serial_no, ";
4119
4119
  query += "d.inv_tn_number, d.inv_pnrr_number, d.inv_tndigit_number, ";
4120
- query += "d.note, d.num_objects, d.no_inventario, d.peso_g from devices d ";
4120
+ query += "d.note, d.num_objects, d.no_inventario, d.peso_g, d.part_of, d.is_unused from devices d ";
4121
4121
  query += "where d.id = :id_device";
4122
4122
  return query;
4123
4123
  }
@@ -4150,7 +4150,7 @@ function queryDeviceForConsegneByIdSQLite(id_device) {
4150
4150
  query += "when d.serial_no != '' and d.serial_no is not null then concat(d.serial_no,'(S/N)') ";
4151
4151
  query += "else concat(d.id, '(ID)') "
4152
4152
  query += "end as Codice, ";
4153
- query += "d.note, d.num_objects, d.no_inventario, d.peso_g from devices d ";
4153
+ query += "d.note, d.num_objects, d.no_inventario, d.peso_g, d.part_of, d.is_unused from devices d ";
4154
4154
  query += "where d.id = " + id_device;
4155
4155
  return query;
4156
4156
  }
@@ -4165,7 +4165,7 @@ function queryDeviceForConsegneByIdMySQL(id_device) {
4165
4165
  query += "when d.serial_no != '' and d.serial_no is not null then concat(d.serial_no,'(S/N)') ";
4166
4166
  query += "else concat(d.id, '(ID)') "
4167
4167
  query += "end as Codice, ";
4168
- query += "d.note, d.num_objects, d.no_inventario, d.peso_g from devices d ";
4168
+ query += "d.note, d.num_objects, d.no_inventario, d.peso_g, d.part_of, d.is_unused from devices d ";
4169
4169
  query += "where d.id = :id_device";
4170
4170
  return query;
4171
4171
  }
@@ -4197,7 +4197,7 @@ function queryDeviceByIdentificativoSQLite(identificativo) {
4197
4197
  query += "d.manifacturer as Marca, d.model as Modello, ";
4198
4198
  query += "d.inv_ict3_number as Inventario, d.serial_no, ";
4199
4199
  query += "d.inv_tn_number, d.inv_pnrr_number, d.inv_tndigit_number, ";
4200
- query += "d.note, d.num_objects, d.no_inventario, d.peso_g from devices d ";
4200
+ query += "d.note, d.num_objects, d.no_inventario, d.peso_g, d.part_of, d.is_unused from devices d ";
4201
4201
  query += "where (d.inv_ict3_number = '" + identificativo + "' or ";
4202
4202
  query += "d.serial_no = '" + identificativo + "' or ";
4203
4203
  query += "d.inv_tndigit_number = '" + identificativo + "' or ";
@@ -4210,7 +4210,7 @@ function queryDeviceByIdentificativoMySQL(identificativo) {
4210
4210
  query += "d.manifacturer as Marca, d.model as Modello, ";
4211
4211
  query += "d.inv_ict3_number as Inventario, d.serial_no, ";
4212
4212
  query += "d.inv_tn_number, d.inv_pnrr_number, d.inv_tndigit_number, ";
4213
- query += "d.note, d.num_objects, d.no_inventario, d.peso_g from devices d ";
4213
+ query += "d.note, d.num_objects, d.no_inventario, d.peso_g, d.part_of, d.is_unused from devices d ";
4214
4214
  query += "where (d.inv_ict3_number = :identificativo or ";
4215
4215
  query += "d.serial_no = :identificativo or ";
4216
4216
  query += "d.inv_tndigit_number = :identificativo or ";
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.155",
7
+ "version": "3.0.156",
8
8
  "description": "Funzioni per ALSManager",
9
9
  "license": "ISC",
10
10
  "author": "Luca Cattani",