alsmanager_lib 3.0.35 → 3.0.36
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 +3 -3
- package/package.json +1 -1
package/lib/modules.js
CHANGED
|
@@ -8168,9 +8168,9 @@ function selectSoftwaresInDepositoSQLite(inv_code) {
|
|
|
8168
8168
|
query += "else concat(s.id,'(ID)') ";
|
|
8169
8169
|
query += "end as Codice ";
|
|
8170
8170
|
query += "from softwares s ";
|
|
8171
|
-
query += "left join consegna_beni cb on
|
|
8172
|
-
query += "where (inv_ict3_number = '" + inv_code + "' or ";
|
|
8173
|
-
query += "serial_no = '" + inv_code + "')";
|
|
8171
|
+
query += "left join consegna_beni cb on s.id = cb.id_bene "
|
|
8172
|
+
query += "where (s.inv_ict3_number = '" + inv_code + "' or ";
|
|
8173
|
+
query += "s.serial_no = '" + inv_code + "')";
|
|
8174
8174
|
query += "and (cb.id is null or (cb.tipo_bene = 'SOFTWARE' and cb.stato_restituzione = 2))";
|
|
8175
8175
|
return query;
|
|
8176
8176
|
}
|