alsmanager_lib 3.0.200 → 3.0.201
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
|
@@ -16463,7 +16463,7 @@ function readCountersPrinterBeforeDate(id_device, operazione, date_ref) {
|
|
|
16463
16463
|
var dr_str = convertDateToStringDB(date_ref);
|
|
16464
16464
|
var query = "select id, id_device, date_read, operation, num_bw, num_colors from printer_counters ";
|
|
16465
16465
|
query += "where id_device = " + id_device + " ";
|
|
16466
|
-
query += "and
|
|
16466
|
+
query += "and operation = '" + operazione + "' ";
|
|
16467
16467
|
query += "and date_read < '" + dr_str + "' ";
|
|
16468
16468
|
query += "order by date_read desc limit 1";
|
|
16469
16469
|
return query;
|