alsmanager_lib 3.0.214 → 3.0.216
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 +11 -7
- package/package.json +1 -1
package/lib/modules.js
CHANGED
|
@@ -8284,7 +8284,8 @@ function deleteBeneInLimbo(id_limbo) {
|
|
|
8284
8284
|
//End Beni in Limbo
|
|
8285
8285
|
// Beni in consegna
|
|
8286
8286
|
function queryConsegneByIdDeviceSQLite(id_device) {
|
|
8287
|
-
var query = "select dc.
|
|
8287
|
+
var query = "select dc.id_consegna as Id_Consegna, ";
|
|
8288
|
+
query += "dc.data_consegna as Consegna, ";
|
|
8288
8289
|
query += "case ";
|
|
8289
8290
|
query += "when dc.stato_restituzione = 0 then 'Prestito in corso' ";
|
|
8290
8291
|
query += "when dc.stato_restituzione = 1 then 'Non restituito' ";
|
|
@@ -8306,7 +8307,8 @@ function queryConsegneByIdDeviceSQLite(id_device) {
|
|
|
8306
8307
|
}
|
|
8307
8308
|
|
|
8308
8309
|
function queryConsegneByIdDeviceMySQL(id_device) {
|
|
8309
|
-
var query = "select dc.
|
|
8310
|
+
var query = "select dc.id_consegna as Id_Consegna, ";
|
|
8311
|
+
query += "dc.data_consegna as Consegna, ";
|
|
8310
8312
|
query += "case ";
|
|
8311
8313
|
query += "when dc.stato_restituzione = 0 then 'Prestito in corso' ";
|
|
8312
8314
|
query += "when dc.stato_restituzione = 1 then 'Non restituito' ";
|
|
@@ -8347,7 +8349,8 @@ function queryConsegneByIdDevice(db_used, id_device) {
|
|
|
8347
8349
|
|
|
8348
8350
|
//
|
|
8349
8351
|
function queryConsegneByIdBeneSQLite(id_bene, tipo_bene) {
|
|
8350
|
-
var query = "select
|
|
8352
|
+
var query = "select dc.id_consegna as Id_Consegna, ";
|
|
8353
|
+
query += "dc.data_consegna as Consegna, ";
|
|
8351
8354
|
query += "case ";
|
|
8352
8355
|
query += "when cb.stato_restituzione = 0 then 'Prestito in corso' ";
|
|
8353
8356
|
query += "when cb.stato_restituzione = 1 then 'Non restituito' ";
|
|
@@ -8363,7 +8366,8 @@ function queryConsegneByIdBeneSQLite(id_bene, tipo_bene) {
|
|
|
8363
8366
|
}
|
|
8364
8367
|
|
|
8365
8368
|
function queryConsegneByIdBeneMySQL(id_bene, tipo_bene) {
|
|
8366
|
-
var query = "select
|
|
8369
|
+
var query = "select dc.id_consegna as Id_Consegna, ";
|
|
8370
|
+
query += "dc.data_consegna as Consegna, ";
|
|
8367
8371
|
query += "case ";
|
|
8368
8372
|
query += "when cb.stato_restituzione = 0 then 'Prestito in corso' ";
|
|
8369
8373
|
query += "when cb.stato_restituzione = 1 then 'Non restituito' ";
|
|
@@ -10107,7 +10111,7 @@ function getSoftwaresNotAllocatedComboSQLite() {
|
|
|
10107
10111
|
query += "when s.serial_no != '' and s.serial_no is not null then concat(s.serial_no,'(S/N)', ' - ', s.platform, ' - ', s.maker, ' - ', s.model) ";
|
|
10108
10112
|
query += "else '' "
|
|
10109
10113
|
query += "end as Descrizione ";
|
|
10110
|
-
query += "from
|
|
10114
|
+
query += "from softwares s ";
|
|
10111
10115
|
query += "left join consegna_beni cb on s.id = cb.id_bene "
|
|
10112
10116
|
query += "where (s.is_removed is null or s.is_removed = 0) "
|
|
10113
10117
|
query += "and (cb.id is null or (cb.tipo_bene = 'SOFTWARE' and cb.stato_restituzione = 2)) ";
|
|
@@ -10122,7 +10126,7 @@ function getSoftwaresNotAllocatedComboMySQL() {
|
|
|
10122
10126
|
query += "when s.serial_no != '' and s.serial_no is not null then concat(s.serial_no,'(S/N)', ' - ', s.platform, ' - ', s.maker, ' - ', s.model) ";
|
|
10123
10127
|
query += "else '' "
|
|
10124
10128
|
query += "end as Descrizione ";
|
|
10125
|
-
query += "from
|
|
10129
|
+
query += "from softwares s ";
|
|
10126
10130
|
query += "left join consegna_beni cb on s.id = cb.id_bene "
|
|
10127
10131
|
query += "where (s.is_removed is null or s.is_removed = 0) "
|
|
10128
10132
|
query += "and (cb.id is null or (cb.tipo_bene = 'SOFTWARE' and cb.stato_restituzione = 2)) ";
|
|
@@ -10137,7 +10141,7 @@ function getSoftwaresNotAllocatedComboMySQL2() {
|
|
|
10137
10141
|
query += "when s.serial_no != '' and s.serial_no is not null then concat(s.serial_no,'(S/N)', ' - ', s.platform, ' - ', s.maker, ' - ', s.model) ";
|
|
10138
10142
|
query += "else '' "
|
|
10139
10143
|
query += "end as Descrizione ";
|
|
10140
|
-
query += "from
|
|
10144
|
+
query += "from softwares s ";
|
|
10141
10145
|
query += "left join consegna_beni cb on s.id = cb.id_bene "
|
|
10142
10146
|
query += "where (s.is_removed is null or s.is_removed = 0) "
|
|
10143
10147
|
query += "and (cb.id is null or (cb.tipo_bene = 'SOFTWARE' and cb.stato_restituzione = 2)) ";
|