alsmanager_lib 2.0.20 → 2.0.22

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 +46 -0
  2. package/package.json +1 -1
package/lib/modules.js CHANGED
@@ -9267,6 +9267,51 @@ function createConsegnaBckDoc(consegna_obj, scuola_obj, listaDispositivi) {
9267
9267
  return dd;
9268
9268
  }
9269
9269
 
9270
+ function createIstruzioniStandard(user, pwd, email, id_consegna, data_cons) {
9271
+ var dd = {
9272
+ content: [
9273
+ {
9274
+ text: 'Istruzioni di accesso\n ',
9275
+ style: 'header',
9276
+ bold: true
9277
+ },
9278
+ {
9279
+ text: 'Selezionare ' + user + '. Password : ' + pwd + '\n',
9280
+ style: 'header',
9281
+ bold: false
9282
+ },
9283
+ {
9284
+ text: '\n\nPer qualsiasi problema o richiesta di chiarimenti sull\'utilizzo del dispositivo, scrivere a : ',
9285
+ style: 'header',
9286
+ bold: false
9287
+ },
9288
+ {
9289
+ text: email,
9290
+ style: 'header',
9291
+ bold: true
9292
+ },
9293
+ {
9294
+ text: '\n\nindicando nell\'oggetto del messaggio : ',
9295
+ style: 'header',
9296
+ bold: false
9297
+ },
9298
+ {
9299
+ text: '\n\nConsegna n.' + id_consegna + ' del ' + data_cons + '\n',
9300
+ style: 'header',
9301
+ bold: bold
9302
+ },
9303
+ ],
9304
+ styles: {
9305
+ header: {
9306
+ fontSize: 16,
9307
+ bold: true,
9308
+ alignment: 'justify'
9309
+ }
9310
+ },
9311
+ }
9312
+ return dd;
9313
+ }
9314
+
9270
9315
  // Export DB
9271
9316
 
9272
9317
  function exportDBSQLSQLite(db_path, dump_path, dump_filename) {
@@ -9589,6 +9634,7 @@ module.exports = {
9589
9634
  getPackageJsVersion,
9590
9635
  createConsegnaDoc,
9591
9636
  createConsegnaBckDoc,
9637
+ createIstruzioniStandard,
9592
9638
  exportDBSQL
9593
9639
  };
9594
9640
  // end of source
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "alsmanager_lib",
3
- "version": "2.0.20",
3
+ "version": "2.0.22",
4
4
  "description": "Funzioni per ALSManager",
5
5
  "license": "ISC",
6
6
  "author": "Luca Cattani",