alsmanager_lib 3.0.232 → 3.0.234

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.
Files changed (2) hide show
  1. package/lib/modules.js +3 -1
  2. package/package.json +1 -1
package/lib/modules.js CHANGED
@@ -4438,6 +4438,7 @@ function insertDeviceAnnotation(id_device, date_annot, annot, annot_type) {
4438
4438
  query += ")";
4439
4439
  return query;
4440
4440
  }
4441
+
4441
4442
  function updateDeviceAnnotation(id_annot, date_annot, annot, annot_type) {
4442
4443
  var query = "update device_annotations set ";
4443
4444
  var dt_str = convertDateToStringDB(date_annot);
@@ -17421,6 +17422,7 @@ function selectPrinterCartridgeById(id_cart) {
17421
17422
  }
17422
17423
 
17423
17424
  function insertPrinterCartridge(tipo, marca, modello, color, numero, data_ultimo_acq, note) {
17425
+ var dt_acq_str = convertDateToStringDB(data_ultimo_acq);
17424
17426
  var query = "insert into printer_cartridges (tipo, marca, modello, color, numero, data_ultimo_acq, note) values ";
17425
17427
  query += "(";
17426
17428
  query += "'" + tipo + "', ";
@@ -17428,7 +17430,7 @@ function insertPrinterCartridge(tipo, marca, modello, color, numero, data_ultimo
17428
17430
  query += "'" + modello + "', ";
17429
17431
  query += "'" + color + "', ";
17430
17432
  query += numero + ", ";
17431
- query += "'" + data_ultimo_acq + "', ";
17433
+ query += "'" + dt_acq_str + "', ";
17432
17434
  query += "'" + note + "' ";
17433
17435
  query += ")";
17434
17436
  return query;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  ".": "./lib/modules.js",
5
5
  "./dbconn": "./lib/dbconn.js"
6
6
  },
7
- "version": "3.0.232",
7
+ "version": "3.0.234",
8
8
  "description": "Funzioni per ALSManager",
9
9
  "license": "ISC",
10
10
  "author": "Luca Cattani",