alsmanager_lib 3.0.87 → 3.0.89

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 +6 -0
  2. package/package.json +1 -1
package/lib/modules.js CHANGED
@@ -12648,6 +12648,12 @@ function createConsegnaBckDoc(consegna_obj, scuola_obj, listaDispositivi) {
12648
12648
  curr_year++;
12649
12649
  }
12650
12650
  data_consegna_str = "01/06/" + curr_year;
12651
+ // Se specificata data limite consegna...
12652
+ if (consegna_obj.data_limite) {
12653
+ var dlim = new Date(consegna_obj.data_limite);
12654
+ data_consegna_str = ("0" + dlim.getDate()).slice(-2) + '/' + ("0"+(dlim.getMonth()+1)).slice(-2) + '/' + dlim.getFullYear();
12655
+ }
12656
+
12651
12657
  var dc = new Date(consegna_obj.data_consegna);
12652
12658
  var dc_str = ("0" + dc.getDate()).slice(-2) + '/' + ("0"+(dc.getMonth()+1)).slice(-2) + '/' + dc.getFullYear();
12653
12659
  var consegnatoA_str = "";
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.87",
7
+ "version": "3.0.89",
8
8
  "description": "Funzioni per ALSManager",
9
9
  "license": "ISC",
10
10
  "author": "Luca Cattani",