alsmanager_lib 3.0.164 → 3.0.165

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 +9 -0
  2. package/package.json +1 -1
package/lib/modules.js CHANGED
@@ -9811,6 +9811,14 @@ function getBeniConsumoByIdDevice(db_used,id_device) {
9811
9811
  }
9812
9812
 
9813
9813
  //Manage dismissioni
9814
+ function getDismissioniYears() {
9815
+ var query = "select distinct substr(data, 1, 4) as year from dismissioni ";
9816
+ query += "where data is not null and trim(data) <> '' ";
9817
+ query += "order by year desc";
9818
+ return query;
9819
+ }
9820
+
9821
+
9814
9822
  function selectDismissioniByYearSQLite(sel_year) {
9815
9823
  var query = "select id, data, descrizione from dismissioni ";
9816
9824
  if (sel_year && sel_year > 0) {
@@ -16031,6 +16039,7 @@ module.exports = {
16031
16039
  checkDocumentoAltroBene,
16032
16040
  selectDocumentoAltroBeneById,
16033
16041
  //
16042
+ getDismissioniYears,
16034
16043
  selectDismissioniByYear,
16035
16044
  selectDismissioneById,
16036
16045
  updateDismissione,
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.164",
7
+ "version": "3.0.165",
8
8
  "description": "Funzioni per ALSManager",
9
9
  "license": "ISC",
10
10
  "author": "Luca Cattani",