alsmanager_lib 3.0.174 → 3.0.176

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 +4 -4
  2. package/package.json +1 -1
package/lib/modules.js CHANGED
@@ -12873,7 +12873,7 @@ function getRitiroByIdDevice(id_device) {
12873
12873
  query += "note ";
12874
12874
  query += "from device_ritiro dr ";
12875
12875
  query += "join device d on d.id = dr.id_device ";
12876
- query += "left join anagrafica_generale ag on dr.id_esecutore = ag.id ";
12876
+ query += "left join gestori_fornitori ag on dr.id_esecutore = ag.id ";
12877
12877
  query += "order by date_ritiro";
12878
12878
  return query;
12879
12879
  }
@@ -12889,7 +12889,7 @@ function getRitiroByFilter(id_device, date_da, date_a, ritirante) {
12889
12889
  query += "note ";
12890
12890
  query += "from device_ritiro dr ";
12891
12891
  query += "join device d on d.id = dr.id_device ";
12892
- query += "left join anagrafica_generale ag on dr.id_esecutore = ag.id ";
12892
+ query += "left join gestori_fornitori ag on dr.id_esecutore = ag.id ";
12893
12893
  query += "where ";
12894
12894
  if (id_device && id_device > 0) {
12895
12895
  query += "id_device = " + id_device + " ";
@@ -12897,7 +12897,7 @@ function getRitiroByFilter(id_device, date_da, date_a, ritirante) {
12897
12897
  query += "and ";
12898
12898
  }
12899
12899
  }
12900
- if ((date_da && date_da != '') || (date_a && date_a != ''))) {
12900
+ if ((date_da && date_da != '') || (date_a && date_a != '')) {
12901
12901
  query += "date_da >= '" + date_da + "' and date_a <= '" + date_a + "' ";
12902
12902
  if (id_esecutore || id_esecutore > 0) {
12903
12903
  query += "and ";
@@ -12960,7 +12960,7 @@ function removeRitiroByFilter(id_device, date_da, date_a, ritirante) {
12960
12960
  query += "and ";
12961
12961
  }
12962
12962
  }
12963
- if ((date_da && date_da != '') || (date_a && date_a != ''))) {
12963
+ if ((date_da && date_da != '') || (date_a && date_a != '')) {
12964
12964
  query += "date_da >= '" + date_da + "' and date_a <= '" + date_a + "' ";
12965
12965
  if (id_esecutore || id_esecutore > 0) {
12966
12966
  query += "and ";
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.174",
7
+ "version": "3.0.176",
8
8
  "description": "Funzioni per ALSManager",
9
9
  "license": "ISC",
10
10
  "author": "Luca Cattani",