alsmanager_lib 3.0.62 → 3.0.63
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 -0
- package/package.json +1 -1
package/lib/modules.js
CHANGED
|
@@ -6900,6 +6900,14 @@ function getDatiConsegneAttive() {
|
|
|
6900
6900
|
}
|
|
6901
6901
|
|
|
6902
6902
|
|
|
6903
|
+
function createConsegnaMessageFromConsegna(consegna, listaBeni, data_limite) {
|
|
6904
|
+
var dc = new Date(consegna.data_consegna);
|
|
6905
|
+
var email_subject = "Consegna n." + consegna.id + " del " + ("0" + dc.getDate()).slice(-2) + '/' + ("0"+(dc.getMonth()+1)).slice(-2) + '/' + dc.getFullYear();
|
|
6906
|
+
return createConsegnaMessage(consegna.richiedente_adulto, consegna.richiedente_alunno, consegna.email_adulto, email_subject, listaBeni, data_limite);
|
|
6907
|
+
}
|
|
6908
|
+
|
|
6909
|
+
|
|
6910
|
+
|
|
6903
6911
|
function createConsegnaMessage(nominativo, nome_alunno, email, rif_consegna, listaBeni, data_limite) {
|
|
6904
6912
|
var msgObj = {};
|
|
6905
6913
|
msgObj.email_to = email;
|
|
@@ -14377,6 +14385,7 @@ module.exports = {
|
|
|
14377
14385
|
queryConsegne,
|
|
14378
14386
|
queryConsegnaById,
|
|
14379
14387
|
getDatiConsegneAttive,
|
|
14388
|
+
createConsegnaMessageFromConsegna,
|
|
14380
14389
|
createConsegnaMessage,
|
|
14381
14390
|
getInviiEmailConsegna,
|
|
14382
14391
|
insertInvioEmailConsegnaByBene,
|