alsmanager_lib 3.0.26 → 3.0.28
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 -9
- package/package.json +1 -1
package/lib/modules.js
CHANGED
|
@@ -7710,9 +7710,9 @@ function selectBeniPerConsegnaSQLite(id_consegna) {
|
|
|
7710
7710
|
var query = "select cb.id_bene as id, 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
|
-
query += "when cb.tipo_bene = 'SOFTWARE' then s.
|
|
7714
|
-
query += "when cb.tipo_bene = 'BENE_CONSUMO' then bc.
|
|
7715
|
-
query += "when cb.tipo_bene = 'ALTRO' then
|
|
7713
|
+
query += "when cb.tipo_bene = 'SOFTWARE' then s.support ";
|
|
7714
|
+
query += "when cb.tipo_bene = 'BENE_CONSUMO' then bc.Tipo ";
|
|
7715
|
+
query += "when cb.tipo_bene = 'ALTRO' then atd.name ";
|
|
7716
7716
|
query += "else '' "
|
|
7717
7717
|
query += "end as Tipo, ";
|
|
7718
7718
|
query += "case ";
|
|
@@ -7732,7 +7732,7 @@ function selectBeniPerConsegnaSQLite(id_consegna) {
|
|
|
7732
7732
|
query += "case ";
|
|
7733
7733
|
query += "when cb.tipo_bene = 'DEVICE' and d.inv_ict3_number != '' and d.inv_ict3_number is not null then d.inv_ict3_number ";
|
|
7734
7734
|
query += "when cb.tipo_bene = 'DEVICE' and d.inv_pnrr_number != '' and d.inv_pnrr_number is not null then d.inv_pnrr_number ";
|
|
7735
|
-
query += "when cb.tipo_bene = 'DEVICE' and
|
|
7735
|
+
query += "when cb.tipo_bene = 'DEVICE' and d.inv_tn_number != '' and d.inv_tn_number is not null then concat(d.inv_tn_number,'(TN)') ";
|
|
7736
7736
|
query += "when cb.tipo_bene = 'DEVICE' and d.inv_tndigit_number != '' and d.inv_tndigit_number is not null then concat(d.inv_tndigit_number,'(TNDigit)') ";
|
|
7737
7737
|
query += "when cb.tipo_bene = 'DEVICE' and d.serial_no != '' and d.serial_no is not null then concat(d.serial_no,'(S/N)') ";
|
|
7738
7738
|
//
|
|
@@ -7752,11 +7752,13 @@ function selectBeniPerConsegnaSQLite(id_consegna) {
|
|
|
7752
7752
|
query += "when cb.tipo_bene = 'DEVICE' and trim(d.inv_pnrr_number) = '' then '' ";
|
|
7753
7753
|
query += "else 'SI' ";
|
|
7754
7754
|
query += "end as PNRR, cb.note_consegna as Note_cons ";
|
|
7755
|
-
query += "
|
|
7756
|
-
query += "
|
|
7757
|
-
query += "
|
|
7758
|
-
query += "
|
|
7759
|
-
query += "
|
|
7755
|
+
query += "from consegna_beni cb ";
|
|
7756
|
+
query += "left join devices d on cb.id_bene = d.id ";
|
|
7757
|
+
query += "left join softwares s on cb.id_bene = s.id ";
|
|
7758
|
+
query += "left join beniconsumo bc on cb.id_bene = bc.id ";
|
|
7759
|
+
query += "left join altri_beni a on cb.id_bene = a.id ";
|
|
7760
|
+
query += "left join altro_tipi atd on a.id_type = atd.id ";
|
|
7761
|
+
query += "where cb.id_consegna = " + id_consegna;
|
|
7760
7762
|
return query;
|
|
7761
7763
|
}
|
|
7762
7764
|
|