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.
- package/lib/modules.js +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,
|
|
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
|
}
|