alsmanager_lib 1.0.47 → 1.0.49
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 +3 -3
- package/package.json +1 -1
package/lib/modules.js
CHANGED
|
@@ -5300,7 +5300,7 @@ function queryLastDismissioneId(db_used) {
|
|
|
5300
5300
|
}
|
|
5301
5301
|
|
|
5302
5302
|
function selectDocumentiByIdDismissioneSQLite(id_dismiss) {
|
|
5303
|
-
var query = "select distinct doc.
|
|
5303
|
+
var query = "select distinct doc.id, doc.descrizione, doc.data_emissione from device_dismissioni ds ";
|
|
5304
5304
|
query += "join devices d on d.id = ds.id_device ";
|
|
5305
5305
|
query += "join device_doc dc on dc.id_device = ds.id_device ";
|
|
5306
5306
|
query += "join dismissioni dm on dm.id = ds.id_dismissione ";
|
|
@@ -5634,12 +5634,12 @@ function selectDocumentoDeviceById(db_used, id_docdev) {
|
|
|
5634
5634
|
|
|
5635
5635
|
function checkDocumentoDeviceSQLite(id_device, id_doc) {
|
|
5636
5636
|
var query = "select count(*) from device_doc ";
|
|
5637
|
-
query += "where
|
|
5637
|
+
query += "where id_device = " + id_device + " and id_documento = " + id_doc;
|
|
5638
5638
|
return query;
|
|
5639
5639
|
}
|
|
5640
5640
|
function checkDocumentoDeviceMySQL(id_device, id_doc) {
|
|
5641
5641
|
var query = "select count(*) from device_doc ";
|
|
5642
|
-
query += "where
|
|
5642
|
+
query += "where id_device = :id_device and id_documento = :id_doc";
|
|
5643
5643
|
return query;
|
|
5644
5644
|
}
|
|
5645
5645
|
function checkDocumentoDevice(db_used, id_device, id_doc) {
|