alsmanager_lib 3.0.48 → 3.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
|
@@ -5813,7 +5813,7 @@ function getDevicesNotAllocatedComboSQLite(id_site, id_place, sel_type, sel_make
|
|
|
5813
5813
|
query += "and (dc.id_consegna is null) ";
|
|
5814
5814
|
query += "and (cb.id is null or (cb.tipo_bene = 'DEVICE' and cb.stato_restituzione = 2)) ";
|
|
5815
5815
|
query += "and (ds.id_place is null ";
|
|
5816
|
-
query += "or ((ds.date_in <= date('now') and ds.date_out >= date('now') and sd.type
|
|
5816
|
+
query += "or ((ds.date_in <= date('now') and ds.date_out >= date('now') and sd.type in ('MAGAZZINO', 'CARRELLO DISPOSITIVI'))) and (ds.id_place <> '" + id_place + "' and ds.id_site <> " + id_site + ")) ";
|
|
5817
5817
|
if (sel_type_str.trim() != '') {
|
|
5818
5818
|
query += "and d.type = '" + sel_type_str.trim() + "' ";
|
|
5819
5819
|
}
|
|
@@ -5856,7 +5856,7 @@ function getDevicesNotAllocatedComboMySQL(id_site, id_place, sel_type, sel_maker
|
|
|
5856
5856
|
query += "and (dc.id_consegna is null) ";
|
|
5857
5857
|
query += "and (cb.id is null or (cb.tipo_bene = 'DEVICE' and cb.stato_restituzione = 2)) ";
|
|
5858
5858
|
query += "and (ds.id_place is null ";
|
|
5859
|
-
query += "or ((ds.date_in <= CURDATE() and ds.date_out >= CURDATE() and sd.type
|
|
5859
|
+
query += "or ((ds.date_in <= CURDATE() and ds.date_out >= CURDATE() and sd.type in ('MAGAZZINO', 'CARRELLO DISPOSITIVI'))) and (ds.id_place <> :id_place and ds.id_site <> :id_site)) ";
|
|
5860
5860
|
if (sel_type_str.trim() != '') {
|
|
5861
5861
|
query += "and d.type = :dev_type ";
|
|
5862
5862
|
}
|
|
@@ -5899,7 +5899,7 @@ function getDevicesNotAllocatedComboMySQL2(id_site, id_place, sel_type, sel_make
|
|
|
5899
5899
|
query += "and (dc.id_consegna is null) ";
|
|
5900
5900
|
query += "and (cb.id is null or (cb.tipo_bene = 'DEVICE' and cb.stato_restituzione = 2)) ";
|
|
5901
5901
|
query += "and (ds.id_place is null ";
|
|
5902
|
-
query += "or ((ds.date_in <= CURDATE() and ds.date_out >= CURDATE() and sd.type
|
|
5902
|
+
query += "or ((ds.date_in <= CURDATE() and ds.date_out >= CURDATE() and sd.type in ('MAGAZZINO', 'CARRELLO DISPOSITIVI'))) and (ds.id_place <> '" + id_place + "' and ds.id_site <> " + id_site + ")) ";
|
|
5903
5903
|
if (sel_type_str.trim() != '') {
|
|
5904
5904
|
query += "and d.type = '" + sel_type_str.trim() + "' ";
|
|
5905
5905
|
}
|