alsmanager_lib 3.0.77 → 3.0.79

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 +5 -4
  2. package/package.json +1 -1
package/lib/modules.js CHANGED
@@ -6772,10 +6772,10 @@ function queryConsegneSQLite(data_da, data_a, data_filter, adulto, alunno) {
6772
6772
  var query = "SELECT id, data_richiesta as Richiesta, data_consegna as Consegna, richiedente_adulto as Adulto, richiedente_alunno as Alunno, richiedente_genitore as Genitore, is_home as Casa, note as Note, email_adulto, email_genitore from consegne ";
6773
6773
  query += "where (removed is null or removed = 0) ";
6774
6774
  if (adulto && adulto.trim() != '') {
6775
- query += "and richiedente_adulto = " + adulto + " ";
6775
+ query += "and richiedente_adulto = '" + adulto + "' ";
6776
6776
  }
6777
6777
  if (alunno && alunno.trim() != '') {
6778
- query += "and richiedente_alunno = " + alunno + " ";
6778
+ query += "and richiedente_alunno = '" + alunno + "' ";
6779
6779
  }
6780
6780
  if (data_da || data_a) {
6781
6781
  query += " and ";
@@ -7684,7 +7684,7 @@ function updateConsegna(db_used, consegna) {
7684
7684
 
7685
7685
  function updateDateConsegnaSQLite(consegna_id) {
7686
7686
  var query = "update consegne ";
7687
- query += "set data_consegna = MIN(cb.data_consegna), ";
7687
+ query += "set data_consegna = MIN(cb.data_consegna) ";
7688
7688
  query += "from consegna_beni cb ";
7689
7689
  query += "where consegne.id = " + consegna_id + " ";
7690
7690
  query += "and cb.id_consegna = " + consegna_id;
@@ -7693,7 +7693,7 @@ function updateDateConsegnaSQLite(consegna_id) {
7693
7693
 
7694
7694
  function updateDateConsegnaMySQL(consegna_id) {
7695
7695
  var query = "update consegne ";
7696
- query += "set data_consegna = MIN(cb.data_consegna), ";
7696
+ query += "set data_consegna = MIN(cb.data_consegna) ";
7697
7697
  query += "from consegna_beni cb ";
7698
7698
  query += "where consegne.id = :consegna_id ";
7699
7699
  query += "and cb.id_consegna = :consegna_id ";
@@ -14525,6 +14525,7 @@ module.exports = {
14525
14525
  insertConsegna,
14526
14526
  updateConsegna,
14527
14527
  updateDateConsegna,
14528
+ updateDataRientroConsegna,
14528
14529
  removeConsegna,
14529
14530
  queryLastConsegnaId,
14530
14531
  insertConsegnaDevice,
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.77",
7
+ "version": "3.0.79",
8
8
  "description": "Funzioni per ALSManager",
9
9
  "license": "ISC",
10
10
  "author": "Luca Cattani",