alsmanager_lib 2.0.97 → 2.0.99
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
|
@@ -2724,7 +2724,7 @@ function getDevicesByIdDocSQLite(id_doc) {
|
|
|
2724
2724
|
query += "end as Codice ";
|
|
2725
2725
|
query += "from devices d ";
|
|
2726
2726
|
query += "left join device_doc dd on d.id = dd.id_device ";
|
|
2727
|
-
query += "where dd.
|
|
2727
|
+
query += "where dd.id_doc = " + id_doc + " ";
|
|
2728
2728
|
query += "order by d.inv_ict3_number, d.inv_tn_number, d.inv_tndigit_number, d.serial_no";
|
|
2729
2729
|
return query;
|
|
2730
2730
|
}
|
|
@@ -2740,7 +2740,7 @@ function getDevicesByIdDocMySQL(id_doc) {
|
|
|
2740
2740
|
query += "end as Codice ";
|
|
2741
2741
|
query += "from devices d ";
|
|
2742
2742
|
query += "left join device_doc dd on d.id = dd.id_device ";
|
|
2743
|
-
query += "where dd.
|
|
2743
|
+
query += "where dd.id_doc = :id_doc ";
|
|
2744
2744
|
query += "order by d.inv_ict3_number, d.inv_tn_number, d.inv_tndigit_number, d.serial_no";
|
|
2745
2745
|
return query;
|
|
2746
2746
|
}
|
|
@@ -8595,7 +8595,7 @@ function selectDocumentsMySQL(tipo, anno_emissione) {
|
|
|
8595
8595
|
return query;
|
|
8596
8596
|
}
|
|
8597
8597
|
|
|
8598
|
-
function selectDocuments(tipo, anno_emissione) {
|
|
8598
|
+
function selectDocuments(db_used, tipo, anno_emissione) {
|
|
8599
8599
|
var query = "";
|
|
8600
8600
|
if (db_used) {
|
|
8601
8601
|
switch (db_used) {
|