alsmanager_lib 3.0.71 → 3.0.72

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 CHANGED
@@ -6890,11 +6890,16 @@ function getDatiConsegneAttive() {
6890
6890
  query += "when s.id is not null and s.inv_ict3_number is not null and trim(s.inv_ict3_number) <> '' then concat(s.maker, ' - ', s.model, ' - Inv.', s.inv_ict3_number) ";
6891
6891
  query += "when s.id is not null and s.serial_no is not null and trim(s.serial_no) <> '' then concat(s.maker, ' - ', s.model, ' - S/N:', s.serial_no) ";
6892
6892
  query += "else '' ";
6893
- query += "end as bene_consegnato ";
6893
+ query += "end as bene_consegnato, ";
6894
+ query += "case ";
6895
+ query += "when cie.id is not null then 'SI' ";
6896
+ query += "else 'NO' ";
6897
+ query += "end as invio_sollecito ";
6894
6898
  query += "from consegna_beni cb ";
6895
6899
  query += "join consegne c on c.id = cb.id_consegna ";
6896
6900
  query += "left join devices d on cb.id_bene = d.id ";
6897
6901
  query += "left join softwares s on cb.id_bene = s.id ";
6902
+ query += "left join consegna_invio_email cie on cb.id_consegna = cie.id_consegna ";
6898
6903
  query += "where cb.stato_restituzione = 0 ";
6899
6904
  return query;
6900
6905
  }
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  ".": "./lib/modules.js",
5
5
  "./dbconn": "./lib/dbconn.js"
6
6
  },
7
- "version": "3.0.71",
7
+ "version": "3.0.72",
8
8
  "description": "Funzioni per ALSManager",
9
9
  "license": "ISC",
10
10
  "author": "Luca Cattani",
package/settings_als.txt CHANGED
@@ -514,6 +514,7 @@ module.exports = {
514
514
  os:require('os'),
515
515
  getmac:require('getmac'),
516
516
  alsmanager_lib:require('alsmanager_lib'),
517
+ nodemailer:require('nodemailer'),
517
518
  },
518
519
 
519
520
  /** The maximum number of messages nodes will buffer internally as part of their