alsmanager_lib 3.0.37 → 3.0.38
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 +8 -8
- package/package.json +1 -1
package/lib/modules.js
CHANGED
|
@@ -5745,7 +5745,7 @@ function getDevicesNotAllocatedComboSQLite(id_site, id_place, sel_type, sel_make
|
|
|
5745
5745
|
query += "left join device_site ds on d.id = ds.id_device ";
|
|
5746
5746
|
query += "left join site_destinations sd on ds.id_site = sd.id_site ";
|
|
5747
5747
|
query += "left join device_consegne dc on d.id = dc.id_device ";
|
|
5748
|
-
query += "left join
|
|
5748
|
+
query += "left join consegna_beni cb on d.id = cb.id_bene "
|
|
5749
5749
|
query += "where (d.is_removed is null or d.is_removed = 0) "
|
|
5750
5750
|
query += "and (dc.id_consegna is null) ";
|
|
5751
5751
|
query += "and (cb.id is null or (cb.tipo_bene = 'DEVICE' and cb.stato_restituzione = 2)) ";
|
|
@@ -5788,7 +5788,7 @@ function getDevicesNotAllocatedComboMySQL(id_site, id_place, sel_type, sel_maker
|
|
|
5788
5788
|
query += "left join device_site ds on d.id = ds.id_device ";
|
|
5789
5789
|
query += "left join site_destinations sd on ds.id_site = sd.id_site ";
|
|
5790
5790
|
query += "left join device_consegne dc on d.id = dc.id_device ";
|
|
5791
|
-
query += "left join
|
|
5791
|
+
query += "left join consegna_beni cb on d.id = cb.id_bene "
|
|
5792
5792
|
query += "where (d.is_removed is null or d.is_removed = 0) "
|
|
5793
5793
|
query += "and (dc.id_consegna is null) ";
|
|
5794
5794
|
query += "and (cb.id is null or (cb.tipo_bene = 'DEVICE' and cb.stato_restituzione = 2)) ";
|
|
@@ -5831,7 +5831,7 @@ function getDevicesNotAllocatedComboMySQL2(id_site, id_place, sel_type, sel_make
|
|
|
5831
5831
|
query += "left join device_site ds on d.id = ds.id_device ";
|
|
5832
5832
|
query += "left join site_destinations sd on ds.id_site = sd.id_site ";
|
|
5833
5833
|
query += "left join device_consegne dc on d.id = dc.id_device ";
|
|
5834
|
-
query += "left join
|
|
5834
|
+
query += "left join consegna_beni cb on d.id = cb.id_bene "
|
|
5835
5835
|
query += "where (d.is_removed is null or d.is_removed = 0) "
|
|
5836
5836
|
query += "and (dc.id_consegna is null) ";
|
|
5837
5837
|
query += "and (cb.id is null or (cb.tipo_bene = 'DEVICE' and cb.stato_restituzione = 2)) ";
|
|
@@ -8017,7 +8017,7 @@ function selectDeviceInDepositoSQLite(inv_code) {
|
|
|
8017
8017
|
query += "join device_site ds on ds.id_device = d.id "
|
|
8018
8018
|
query += "join sites s on s.id = ds.id_site "
|
|
8019
8019
|
query += "join site_destinations sd on sd.id_site = s.id "
|
|
8020
|
-
query += "left join
|
|
8020
|
+
query += "left join consegna_beni cb on d.id = cb.id_bene "
|
|
8021
8021
|
query += "where (inv_ict3_number = '" + inv_code + "' or ";
|
|
8022
8022
|
query += "inv_tn_number = '" + inv_code + "' or ";
|
|
8023
8023
|
query += "serial_no = '" + inv_code + "' or ";
|
|
@@ -8039,7 +8039,7 @@ function selectDeviceInDepositoMySQL(inv_code) {
|
|
|
8039
8039
|
query += "join device_site ds on ds.id_device = d.id "
|
|
8040
8040
|
query += "join sites s on s.id = ds.id_site "
|
|
8041
8041
|
query += "join site_destinations sd on sd.id_site = s.id "
|
|
8042
|
-
query += "left join
|
|
8042
|
+
query += "left join consegna_beni cb on d.id = cb.id_bene "
|
|
8043
8043
|
query += " where (inv_ict3_number = :inv_code or ";
|
|
8044
8044
|
query += "inv_tn_number = :inv_code or ";
|
|
8045
8045
|
query += "serial_no = :inv_code or ";
|
|
@@ -8221,7 +8221,7 @@ function getSoftwaresNotAllocatedComboSQLite() {
|
|
|
8221
8221
|
query += "else '' "
|
|
8222
8222
|
query += "end as Descrizione ";
|
|
8223
8223
|
query += "from Softwares s ";
|
|
8224
|
-
query += "left join
|
|
8224
|
+
query += "left join consegna_beni cb on s.id = cb.id_bene "
|
|
8225
8225
|
query += "where (s.is_removed is null or s.is_removed = 0) "
|
|
8226
8226
|
query += "and (cb.id is null or (cb.tipo_bene = 'SOFTWARE' and cb.stato_restituzione = 2)) ";
|
|
8227
8227
|
return query;
|
|
@@ -8236,7 +8236,7 @@ function getSoftwaresNotAllocatedComboMySQL() {
|
|
|
8236
8236
|
query += "else '' "
|
|
8237
8237
|
query += "end as Descrizione ";
|
|
8238
8238
|
query += "from Softwares s ";
|
|
8239
|
-
query += "left join
|
|
8239
|
+
query += "left join consegna_beni cb on s.id = cb.id_bene "
|
|
8240
8240
|
query += "where (s.is_removed is null or s.is_removed = 0) "
|
|
8241
8241
|
query += "and (cb.id is null or (cb.tipo_bene = 'SOFTWARE' and cb.stato_restituzione = 2)) ";
|
|
8242
8242
|
return query;
|
|
@@ -8251,7 +8251,7 @@ function getSoftwaresNotAllocatedComboMySQL2() {
|
|
|
8251
8251
|
query += "else '' "
|
|
8252
8252
|
query += "end as Descrizione ";
|
|
8253
8253
|
query += "from Softwares s ";
|
|
8254
|
-
query += "left join
|
|
8254
|
+
query += "left join consegna_beni cb on s.id = cb.id_bene "
|
|
8255
8255
|
query += "where (s.is_removed is null or s.is_removed = 0) "
|
|
8256
8256
|
query += "and (cb.id is null or (cb.tipo_bene = 'SOFTWARE' and cb.stato_restituzione = 2)) ";
|
|
8257
8257
|
return query;
|