alsmanager_lib 3.0.116 → 3.0.117
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 +5 -2
- package/package.json +1 -1
package/lib/modules.js
CHANGED
|
@@ -11180,11 +11180,14 @@ function updateSiteDestination(id_site, id_place, date_start, date_end, name, fu
|
|
|
11180
11180
|
return query;
|
|
11181
11181
|
}
|
|
11182
11182
|
|
|
11183
|
-
function updateSiteDestinationAfterMove(id_site, id_place, date_start_ref) {
|
|
11183
|
+
function updateSiteDestinationAfterMove(id_site, id_place, date_start, name, funzione, date_start_ref) {
|
|
11184
11184
|
var dt_end = convertDateToStringDB(date_start_ref);
|
|
11185
|
+
var dt_start = convertDateToStringDB(date_start);
|
|
11185
11186
|
var query = "update site_destinations set ";
|
|
11186
11187
|
query += "date_end = date('" + dt_end + "', '-1 day') ";
|
|
11187
|
-
query += "where id_site = " + id_site + " and id_place = '" + id_place + "'";
|
|
11188
|
+
query += "where id_site = " + id_site + " and id_place = '" + id_place + "' ";
|
|
11189
|
+
query += "and date_start = '" + dt_start + "' ";
|
|
11190
|
+
query += "and name = '" + name + "' and type = '" + funzione + "'";
|
|
11188
11191
|
return query;
|
|
11189
11192
|
}
|
|
11190
11193
|
|