alsmanager_lib 3.0.29 → 3.0.31
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 +7 -7
- package/package.json +1 -1
package/lib/modules.js
CHANGED
|
@@ -7707,7 +7707,7 @@ function removeConsegnaBene(db_used, id_benecons) {
|
|
|
7707
7707
|
return query;
|
|
7708
7708
|
}
|
|
7709
7709
|
function selectBeniPerConsegnaSQLite(id_consegna) {
|
|
7710
|
-
var query = "select cb.
|
|
7710
|
+
var query = "select cb.id, cb.id_bene, cb.numero as Numero, cb.tipo_bene as Tipologia, ";
|
|
7711
7711
|
query += "case ";
|
|
7712
7712
|
query += "when cb.tipo_bene = 'DEVICE' then d.type ";
|
|
7713
7713
|
query += "when cb.tipo_bene = 'SOFTWARE' then s.support ";
|
|
@@ -7799,14 +7799,14 @@ function selectBeniPerConsegna(db_used, id_consegna) {
|
|
|
7799
7799
|
return query;
|
|
7800
7800
|
}
|
|
7801
7801
|
|
|
7802
|
-
function selectBeneConsegnaSQLite(
|
|
7802
|
+
function selectBeneConsegnaSQLite(id_benecons) {
|
|
7803
7803
|
var query = "select cb.id as id_benecons, cb.id_consegna, cb.id_bene, cb.tipo_bene, ";
|
|
7804
7804
|
query += "cb.note_consegna, cb.numero, cb.stato_restituzione, cb.data_consegna, cb.data_restituzione from consegna_beni cb";
|
|
7805
7805
|
query += " where cb.id = " + id_benecons;
|
|
7806
7806
|
return query;
|
|
7807
7807
|
}
|
|
7808
7808
|
|
|
7809
|
-
function selectBeneConsegnaMySQL(
|
|
7809
|
+
function selectBeneConsegnaMySQL(id_benecons) {
|
|
7810
7810
|
var query = "select cb.id as id_benecons, cb.id_consegna, cb.id_bene, cb.tipo_bene, ";
|
|
7811
7811
|
query += "cb.note_consegna, cb.numero, cb.stato_restituzione, cb.data_consegna, cb.data_restituzione from consegna_beni cb";
|
|
7812
7812
|
query += " where cb.id = :id_benecons";
|
|
@@ -7814,18 +7814,18 @@ function selectBeneConsegnaMySQL(id_consegna, id_benecons) {
|
|
|
7814
7814
|
}
|
|
7815
7815
|
|
|
7816
7816
|
|
|
7817
|
-
function selectBeneConsegna(db_used,
|
|
7817
|
+
function selectBeneConsegna(db_used, id_benecons) {
|
|
7818
7818
|
var query = "";
|
|
7819
7819
|
if (db_used) {
|
|
7820
7820
|
switch (db_used) {
|
|
7821
7821
|
case 'SQLITE':
|
|
7822
|
-
query = selectBeneConsegnaSQLite(
|
|
7822
|
+
query = selectBeneConsegnaSQLite(id_benecons);
|
|
7823
7823
|
break;
|
|
7824
7824
|
case 'MYSQL':
|
|
7825
|
-
query = selectBeneConsegnaMySQL(
|
|
7825
|
+
query = selectBeneConsegnaMySQL(id_benecons);
|
|
7826
7826
|
break;
|
|
7827
7827
|
case 'MYSQL2':
|
|
7828
|
-
query = selectBeneConsegnaSQLite(
|
|
7828
|
+
query = selectBeneConsegnaSQLite(id_benecons);
|
|
7829
7829
|
break;
|
|
7830
7830
|
}
|
|
7831
7831
|
}
|