alsmanager_lib 3.0.159 → 3.0.160
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
|
@@ -4837,11 +4837,11 @@ function getDevicesSelectComboSQLite(categoria, id_dev_exclude, with_properties)
|
|
|
4837
4837
|
*/
|
|
4838
4838
|
query += "case ";
|
|
4839
4839
|
query += "when d.no_inventario is not null and d.no_inventario > 0 then concat(d.id, '(ID)', ' - ', d.type, ' - ', d.manifacturer, ' - ', d.model) ";
|
|
4840
|
-
query += "when d.inv_ict3_number != '' and d.inv_ict3_number is not null then concat(d.inv_ict3_number, ' - ', d.type, ' - ', d.manifacturer, ' - ', d.model) ";
|
|
4840
|
+
query += "when d.inv_ict3_number != '' and d.inv_ict3_number is not null then concat(d.inv_ict3_number,iif(d.part_of is not null and trim(d.part_of) <> '', concat('/',d.part_of),''), ' - ', d.type, ' - ', d.manifacturer, ' - ', d.model) ";
|
|
4841
4841
|
query += "when d.inv_tn_number != '' and d.inv_tn_number is not null then concat(d.inv_tn_number, '(TN)', ' - ', d.type, ' - ', d.manifacturer, ' - ', d.model) ";
|
|
4842
4842
|
query += "when d.inv_tndigit_number != '' and d.inv_tndigit_number is not null then concat(d.inv_tndigit_number,'(TNDigit)', ' - ', d.type, ' - ', d.manifacturer, ' - ', d.model) ";
|
|
4843
4843
|
query += "when d.serial_no != '' and d.serial_no is not null then concat(d.serial_no,'(S/N)', ' - ', d.type, ' - ', d.manifacturer, ' - ', d.model) ";
|
|
4844
|
-
query += "else '' "
|
|
4844
|
+
query += "else '' ";
|
|
4845
4845
|
query += "end as Descrizione ";
|
|
4846
4846
|
query += "from devices d ";
|
|
4847
4847
|
if (with_properties && with_properties > 0) {
|
|
@@ -4865,7 +4865,7 @@ function getDevicesSelectComboMySQL(categoria, id_dev_exclude, with_properties)
|
|
|
4865
4865
|
var query = "SELECT d.id, d.type as Tipo, d.manifacturer as Marca, d.model as Modello, ";
|
|
4866
4866
|
query += "case ";
|
|
4867
4867
|
query += "when d.no_inventario is not null and d.no_inventario > 0 then concat(d.id, '(ID)', ' - ', d.type, ' - ', d.manifacturer, ' - ', d.model) ";
|
|
4868
|
-
query += "when d.inv_ict3_number != '' and d.inv_ict3_number is not null then concat(d.inv_ict3_number, ' - ', d.type, ' - ', d.manifacturer, ' - ', d.model) ";
|
|
4868
|
+
query += "when d.inv_ict3_number != '' and d.inv_ict3_number is not null then concat(d.inv_ict3_number,iif(d.part_of is not null and trim(d.part_of) <> '', concat('/',d.part_of),''), ' - ', d.type, ' - ', d.manifacturer, ' - ', d.model) ";
|
|
4869
4869
|
query += "when d.inv_tn_number != '' and d.inv_tn_number is not null then concat(d.inv_tn_number, '(TN)', ' - ', d.type, ' - ', d.manifacturer, ' - ', d.model) ";
|
|
4870
4870
|
query += "when d.inv_tndigit_number != '' and d.inv_tndigit_number is not null then concat(d.inv_tndigit_number,'(TNDigit)', ' - ', d.type, ' - ', d.manifacturer, ' - ', d.model) ";
|
|
4871
4871
|
query += "when d.serial_no != '' and d.serial_no is not null then concat(d.serial_no,'(S/N)', ' - ', d.type, ' - ', d.manifacturer, ' - ', d.model) ";
|
|
@@ -4911,7 +4911,7 @@ function getDevicesSelectBySiteComboSQLite(id_site, dev_type) {
|
|
|
4911
4911
|
var query = "SELECT d.id, d.type as Tipo, d.manifacturer as Marca, d.model as Modello, ";
|
|
4912
4912
|
query += "case ";
|
|
4913
4913
|
query += "when d.no_inventario is not null and d.no_inventario > 0 then concat(d.id, '(ID)', ' - ', d.type, ' - ', d.manifacturer, ' - ', d.model) ";
|
|
4914
|
-
query += "when d.inv_ict3_number != '' and d.inv_ict3_number is not null then concat(d.inv_ict3_number, ' - ', d.type, ' - ', d.manifacturer, ' - ', d.model) ";
|
|
4914
|
+
query += "when d.inv_ict3_number != '' and d.inv_ict3_number is not null then concat(d.inv_ict3_number,iif(d.part_of is not null and trim(d.part_of) <> '', concat('/',d.part_of),''), ' - ', d.type, ' - ', d.manifacturer, ' - ', d.model) ";
|
|
4915
4915
|
query += "when d.inv_tn_number != '' and d.inv_tn_number is not null then concat(d.inv_tn_number, '(TN)', ' - ', d.type, ' - ', d.manifacturer, ' - ', d.model) ";
|
|
4916
4916
|
query += "when d.inv_tndigit_number != '' and d.inv_tndigit_number is not null then concat(d.inv_tndigit_number,'(TNDigit)', ' - ', d.type, ' - ', d.manifacturer, ' - ', d.model) ";
|
|
4917
4917
|
query += "when d.serial_no != '' and d.serial_no is not null then concat(d.serial_no,'(S/N)', ' - ', d.type, ' - ', d.manifacturer, ' - ', d.model) ";
|
|
@@ -4932,7 +4932,7 @@ function getDevicesSelectBySiteComboMySQL(id_site, dev_type) {
|
|
|
4932
4932
|
var query = "SELECT d.id, d.type as Tipo, d.manifacturer as Marca, d.model as Modello, ";
|
|
4933
4933
|
query += "case ";
|
|
4934
4934
|
query += "when d.no_inventario is not null and d.no_inventario > 0 then concat(d.id, '(ID)', ' - ', d.type, ' - ', d.manifacturer, ' - ', d.model) ";
|
|
4935
|
-
query += "when d.inv_ict3_number != '' and d.inv_ict3_number is not null then concat(d.inv_ict3_number, ' - ', d.type, ' - ', d.manifacturer, ' - ', d.model) ";
|
|
4935
|
+
query += "when d.inv_ict3_number != '' and d.inv_ict3_number is not null then concat(d.inv_ict3_number,iif(d.part_of is not null and trim(d.part_of) <> '', concat('/',d.part_of),''), ' - ', d.type, ' - ', d.manifacturer, ' - ', d.model) ";
|
|
4936
4936
|
query += "when d.inv_tn_number != '' and d.inv_tn_number is not null then concat(d.inv_tn_number, '(TN)', ' - ', d.type, ' - ', d.manifacturer, ' - ', d.model) ";
|
|
4937
4937
|
query += "when d.inv_tndigit_number != '' and d.inv_tndigit_number is not null then concat(d.inv_tndigit_number,'(TNDigit)', ' - ', d.type, ' - ', d.manifacturer, ' - ', d.model) ";
|
|
4938
4938
|
query += "when d.serial_no != '' and d.serial_no is not null then concat(d.serial_no,'(S/N)', ' - ', d.type, ' - ', d.manifacturer, ' - ', d.model) ";
|
|
@@ -4953,7 +4953,7 @@ function getDevicesSelectBySiteComboMySQL2(id_site, dev_type) {
|
|
|
4953
4953
|
var query = "SELECT d.id, d.type as Tipo, d.manifacturer as Marca, d.model as Modello, ";
|
|
4954
4954
|
query += "case ";
|
|
4955
4955
|
query += "when d.no_inventario is not null and d.no_inventario > 0 then concat(d.id, '(ID)', ' - ', d.type, ' - ', d.manifacturer, ' - ', d.model) ";
|
|
4956
|
-
query += "when d.inv_ict3_number != '' and d.inv_ict3_number is not null then concat(d.inv_ict3_number, ' - ', d.type, ' - ', d.manifacturer, ' - ', d.model) ";
|
|
4956
|
+
query += "when d.inv_ict3_number != '' and d.inv_ict3_number is not null then concat(d.inv_ict3_number,iif(d.part_of is not null and trim(d.part_of) <> '', concat('/',d.part_of),''), ' - ', d.type, ' - ', d.manifacturer, ' - ', d.model) ";
|
|
4957
4957
|
query += "when d.inv_tn_number != '' and d.inv_tn_number is not null then concat(d.inv_tn_number, '(TN)', ' - ', d.type, ' - ', d.manifacturer, ' - ', d.model) ";
|
|
4958
4958
|
query += "when d.inv_tndigit_number != '' and d.inv_tndigit_number is not null then concat(d.inv_tndigit_number,'(TNDigit)', ' - ', d.type, ' - ', d.manifacturer, ' - ', d.model) ";
|
|
4959
4959
|
query += "when d.serial_no != '' and d.serial_no is not null then concat(d.serial_no,'(S/N)', ' - ', d.type, ' - ', d.manifacturer, ' - ', d.model) ";
|
|
@@ -5096,7 +5096,7 @@ function getDevicesWithPropertiesSQLite(id_device) {
|
|
|
5096
5096
|
var query = "select ";
|
|
5097
5097
|
query += "case ";
|
|
5098
5098
|
query += "when d.no_inventario is not null and d.no_inventario > 0 then concat(d.id, '(ID)') ";
|
|
5099
|
-
query += "when d.inv_ict3_number != '' and d.inv_ict3_number is not null then d.inv_ict3_number ";
|
|
5099
|
+
query += "when d.inv_ict3_number != '' and d.inv_ict3_number is not null then concat(d.inv_ict3_number, iif(d.part_of is not null and trim(d.part_of) <> '', concat('/',d.part_of),'')) ";
|
|
5100
5100
|
query += "when d.inv_pnrr_number != '' and d.inv_pnrr_number is not null then d.inv_pnrr_number ";
|
|
5101
5101
|
query += "when d.inv_tn_number != '' and d.inv_tn_number is not null then concat(d.inv_tn_number,'(TN)') ";
|
|
5102
5102
|
query += "when d.inv_tndigit_number != '' and d.inv_tndigit_number is not null then concat(d.inv_tndigit_number,'(TNDigit)') ";
|
|
@@ -5115,7 +5115,7 @@ function getDevicesWithPropertiesMySQL(id_device) {
|
|
|
5115
5115
|
var query = "select ";
|
|
5116
5116
|
query += "case ";
|
|
5117
5117
|
query += "when d.no_inventario is not null and d.no_inventario > 0 then concat(d.id, '(ID)') ";
|
|
5118
|
-
query += "when d.inv_ict3_number != '' and d.inv_ict3_number is not null then d.inv_ict3_number ";
|
|
5118
|
+
query += "when d.inv_ict3_number != '' and d.inv_ict3_number is not null then concat(d.inv_ict3_number, iif(d.part_of is not null and trim(d.part_of) <> '', concat('/',d.part_of),'')) ";
|
|
5119
5119
|
query += "when d.inv_pnrr_number != '' and d.inv_pnrr_number is not null then d.inv_pnrr_number ";
|
|
5120
5120
|
query += "when d.inv_tn_number != '' and d.inv_tn_number is not null then concat(d.inv_tn_number,'(TN)') ";
|
|
5121
5121
|
query += "when d.inv_tndigit_number != '' and d.inv_tndigit_number is not null then concat(d.inv_tndigit_number,'(TNDigit)') ";
|