alsmanager_lib 3.0.61 → 3.0.62

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.
Files changed (2) hide show
  1. package/lib/modules.js +8 -4
  2. package/package.json +1 -1
package/lib/modules.js CHANGED
@@ -6900,16 +6900,20 @@ function getDatiConsegneAttive() {
6900
6900
  }
6901
6901
 
6902
6902
 
6903
- function createConsegnaMessage(nominativo, email, rif_consegna, listaBeni, data_limite) {
6903
+ function createConsegnaMessage(nominativo, nome_alunno, email, rif_consegna, listaBeni, data_limite) {
6904
6904
  var msgObj = {};
6905
6905
  msgObj.email_to = email;
6906
6906
  msgObj.subject = rif_consegna;
6907
- msgObj.message = "Gentile/Egregio ins." + nominativo + "\n\n";
6908
- msgObj.message += "Si ricorda di effettuare entro la data " + data_limite + " la consegna dei seguenti beni : \n\n";
6907
+ msgObj.message = "Gentile/Egregio ins." + nominativo;
6908
+ if (nome_alunno && nome_alunno.trim() != '' && nome_alunno.length > 5) {
6909
+ msgObj.message = " (nome alunno/a : " + nome_alunno + ")";
6910
+ }
6911
+ msgObj.message += "\n\n";
6912
+ msgObj.message += "Si ricorda di effettuare entro la data " + data_limite + " la consegna dei seguenti beni : \n";
6909
6913
  listaBeni.forEach(element => {
6910
6914
  msgObj.message += "n. " + element.Numero + " - " + element.Tipo + " - " + element.Marca + " - " + element.Modello + " - Cod. " + element.Codice + "\n";
6911
6915
  });
6912
- msgObj.message += "\n\nSi richiede che la consegna venga effettuata ad un tecnico dell'Istituto per le verifiche del caso.\n";
6916
+ msgObj.message += "\nSi richiede che la consegna venga effettuata ad un tecnico dell'Istituto per le verifiche del caso.\n";
6913
6917
  msgObj.message += "Se per eventuali esigenze fosse necessario prolungare l'utilizzo del bene, si prega di contattare l'Ufficio Tecnico.\n ";
6914
6918
  msgObj.message += "\n\nCordiali saluti\n\nI tecnici dell'I.C. Trento 3";
6915
6919
  return msgObj;
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.61",
7
+ "version": "3.0.62",
8
8
  "description": "Funzioni per ALSManager",
9
9
  "license": "ISC",
10
10
  "author": "Luca Cattani",