alsmanager_lib 3.0.59 → 3.0.61
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 +1 -1
- package/package.json +1 -1
package/lib/modules.js
CHANGED
|
@@ -6948,7 +6948,7 @@ 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_invio + ", '" + esito_invio + "' from consegne c ";
|
|
6951
|
+
query += "select c.id, cb.id_bene, '" + data_invio + "', '" + email_invio + "', '" + esito_invio + "' from consegne c ";
|
|
6952
6952
|
query += "left join consegna_beni cb on c.id = cb.id_consegna ";
|
|
6953
6953
|
query += "where c.id = " + id_consegna + " and cb.id_bene is not null ";
|
|
6954
6954
|
query += "and cb.stato_restituzione = 0";
|