alsmanager_lib 3.0.234 → 3.0.236
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 +6 -4
- package/package.json +1 -1
package/lib/modules.js
CHANGED
|
@@ -4736,7 +4736,7 @@ function insertDeviceSQLite(dev) {
|
|
|
4736
4736
|
if (dev.peso_g)
|
|
4737
4737
|
peso = dev.peso_g;
|
|
4738
4738
|
|
|
4739
|
-
query = "insert into devices (inv_ict3_number, inv_tn_number, inv_pnrr_number, inv_tndigit_number, type, manifacturer, model, serial_no, note, num_objects, no_inventario, peso_g, part_of, is_unused, date_insert) ";
|
|
4739
|
+
query = "insert into devices (inv_ict3_number, inv_tn_number, inv_pnrr_number, inv_tndigit_number, type, manifacturer, model, serial_no, note, num_objects, no_inventario, peso_g, part_of, is_unused, date_insert, is_removed) ";
|
|
4740
4740
|
query += "values (";
|
|
4741
4741
|
query += "'" + String(inventario).trim() + "',";
|
|
4742
4742
|
query += "'" + String(inv_comune).trim() + "',";
|
|
@@ -4752,13 +4752,14 @@ function insertDeviceSQLite(dev) {
|
|
|
4752
4752
|
query += peso + ", ";
|
|
4753
4753
|
query += "'" + dev.part_of + "', ";
|
|
4754
4754
|
query += dev.is_unused + ", ";
|
|
4755
|
-
query += "'" + convertDateToStringDB(new Date()) + "'";
|
|
4755
|
+
query += "'" + convertDateToStringDB(new Date()) + "', ";
|
|
4756
|
+
query += "0"; // is_removed
|
|
4756
4757
|
query += ")";
|
|
4757
4758
|
}
|
|
4758
4759
|
return query;
|
|
4759
4760
|
}
|
|
4760
4761
|
function insertDeviceMySQL() {
|
|
4761
|
-
query = "insert into devices (inv_ict3_number, inv_tn_number, inv_pnrr_number, inv_tndigit_number, type, manifacturer, model, serial_no, note, num_objects, no_inventario, peso_g, part_of, is_unused, date_insert) ";
|
|
4762
|
+
query = "insert into devices (inv_ict3_number, inv_tn_number, inv_pnrr_number, inv_tndigit_number, type, manifacturer, model, serial_no, note, num_objects, no_inventario, peso_g, part_of, is_unused, date_insert, is_removed) ";
|
|
4762
4763
|
query += "values (";
|
|
4763
4764
|
query += ":inventario, ";
|
|
4764
4765
|
query += ":inv_comune, ";
|
|
@@ -4774,7 +4775,8 @@ function insertDeviceMySQL() {
|
|
|
4774
4775
|
query += ":peso_g, ";
|
|
4775
4776
|
query += ":part_of, ";
|
|
4776
4777
|
query += ":is_unused, ";
|
|
4777
|
-
query += "'" + convertDateToStringDB(new Date()) + "'";
|
|
4778
|
+
query += "'" + convertDateToStringDB(new Date()) + "', ";
|
|
4779
|
+
query += "0"; // is_removed
|
|
4778
4780
|
query += ")";
|
|
4779
4781
|
return query;
|
|
4780
4782
|
}
|