alsmanager_lib 3.0.60 → 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.
- package/lib/modules.js +9 -5
- 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
|
|
6908
|
-
|
|
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 += "\
|
|
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;
|
|
@@ -6948,7 +6952,7 @@ function insertInvioEmailConsegnaByBene(id_consegna, id_bene, data_invio, email_
|
|
|
6948
6952
|
|
|
6949
6953
|
function insertInvioEmailConsegna(id_consegna, data_invio, email_invio, esito_invio) {
|
|
6950
6954
|
var query = "insert into consegna_invio_email (id_consegna, id_bene, data_invio, email_destinatario, esito) ";
|
|
6951
|
-
query += "select c.id, cb.id_bene, '" + data_invio + "', '" + email_invio + ", '" + esito_invio + "' from consegne c ";
|
|
6955
|
+
query += "select c.id, cb.id_bene, '" + data_invio + "', '" + email_invio + "', '" + esito_invio + "' from consegne c ";
|
|
6952
6956
|
query += "left join consegna_beni cb on c.id = cb.id_consegna ";
|
|
6953
6957
|
query += "where c.id = " + id_consegna + " and cb.id_bene is not null ";
|
|
6954
6958
|
query += "and cb.stato_restituzione = 0";
|