alsmanager_lib 3.0.155 → 3.0.157
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 +11 -6
- 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 ";
|
|
@@ -4676,6 +4676,7 @@ function getDeviceMySQLPayload(dev) {
|
|
|
4676
4676
|
retValue.modello = "";
|
|
4677
4677
|
retValue.serial_no = "";
|
|
4678
4678
|
retValue.note = "";
|
|
4679
|
+
retValue.part_of = "";
|
|
4679
4680
|
|
|
4680
4681
|
if (dev.inventario)
|
|
4681
4682
|
retValue.inventario = dev.inventario;
|
|
@@ -4699,6 +4700,10 @@ function getDeviceMySQLPayload(dev) {
|
|
|
4699
4700
|
if (dev.peso_g) {
|
|
4700
4701
|
retValue.peso_g = dev.peso_g;
|
|
4701
4702
|
}
|
|
4703
|
+
if (dev.part_of) {
|
|
4704
|
+
retValue.part_of = dev.part_of;
|
|
4705
|
+
}
|
|
4706
|
+
|
|
4702
4707
|
|
|
4703
4708
|
retValue.num_objects = dev.num_objects;
|
|
4704
4709
|
retValue.no_inv = dev.no_inv;
|