alsmanager_lib 3.0.58 → 3.0.59

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 +2 -2
  2. package/package.json +1 -1
package/lib/modules.js CHANGED
@@ -6948,9 +6948,9 @@ function insertInvioEmailConsegnaByBene(id_consegna, id_bene, data_invio, email_
6948
6948
 
6949
6949
  function insertInvioEmailConsegna(id_consegna, data_invio, email_invio, esito_invio) {
6950
6950
  var query = "insert into consegna_invio_email (id_consegna, id_bene, data_invio, email_destinatario, esito) ";
6951
- query += "select c.id, data_invio, email_destinatario, esito from consegne c ";
6951
+ query += "select c.id, '" + data_invio + "', '" + email_invio + ", '" + esito_invio + "' from consegne c ";
6952
6952
  query += "left join consegna_beni cb on c.id = cb.id_consegna ";
6953
- query += "where cb.id_bene is not null ";
6953
+ query += "where c.id = " + id_consegna + " and cb.id_bene is not null ";
6954
6954
  query += "and cb.stato_restituzione = 0";
6955
6955
  return query;
6956
6956
  }
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.58",
7
+ "version": "3.0.59",
8
8
  "description": "Funzioni per ALSManager",
9
9
  "license": "ISC",
10
10
  "author": "Luca Cattani",