alsmanager_lib 3.0.171 → 3.0.173
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 +4 -4
- package/package.json +1 -1
package/lib/modules.js
CHANGED
|
@@ -4243,7 +4243,7 @@ function queryDeviceByIdentificativo(db_used, identificativo) {
|
|
|
4243
4243
|
|
|
4244
4244
|
//Get Device Status
|
|
4245
4245
|
function queryDeviceStatusSQLite(id_device, date_ref) {
|
|
4246
|
-
var query = "select case when status is null then 0 else status end as stato,
|
|
4246
|
+
var query = "select case when status is null then 0 else status end as stato, date_start, date_end from device_usage du ";
|
|
4247
4247
|
query += "where du.id_device = " + id_device + " ";
|
|
4248
4248
|
if (date_ref) {
|
|
4249
4249
|
switch (date_ref) {
|
|
@@ -4260,7 +4260,7 @@ function queryDeviceStatusSQLite(id_device, date_ref) {
|
|
|
4260
4260
|
return query;
|
|
4261
4261
|
}
|
|
4262
4262
|
function queryDeviceStatusMySQL(id_device, date_ref) {
|
|
4263
|
-
var query = "select case when status is null then 0 else status end as stato,
|
|
4263
|
+
var query = "select case when status is null then 0 else status end as stato, date_start, date_end from device_usage du ";
|
|
4264
4264
|
query += "where du.id_device = :id_device ";
|
|
4265
4265
|
if (date_ref) {
|
|
4266
4266
|
switch (date_ref) {
|
|
@@ -4277,7 +4277,7 @@ function queryDeviceStatusMySQL(id_device, date_ref) {
|
|
|
4277
4277
|
return query;
|
|
4278
4278
|
}
|
|
4279
4279
|
function queryDeviceStatusMySQL2(id_device, date_ref) {
|
|
4280
|
-
var query = "select case when status is null then 0 else status end as stato,
|
|
4280
|
+
var query = "select case when status is null then 0 else status end as stato, date_start, date_end from device_usage du ";
|
|
4281
4281
|
query += "where du.id_device = " + id_device + " ";
|
|
4282
4282
|
if (date_ref) {
|
|
4283
4283
|
switch (date_ref) {
|
|
@@ -6624,7 +6624,7 @@ function queryDeviceTypes() {
|
|
|
6624
6624
|
function getDevicesNotAllocatedComboSQLite(id_site, id_place, sel_type, sel_maker, ordered_by) {
|
|
6625
6625
|
var sel_type_str = "";
|
|
6626
6626
|
if (sel_type) {
|
|
6627
|
-
|
|
6627
|
+
sel_type_str = sel_type.toString();
|
|
6628
6628
|
}
|
|
6629
6629
|
var sel_maker_str = "";
|
|
6630
6630
|
if (sel_maker) {
|