alsmanager_lib 1.0.2 → 1.0.3
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 +2 -20
- package/package.json +1 -1
package/lib/modules.js
CHANGED
|
@@ -1641,25 +1641,6 @@ function getDevicesNotAllocatedComboMySQL() {
|
|
|
1641
1641
|
query += "order by d.inv_ict3_number";
|
|
1642
1642
|
return query;
|
|
1643
1643
|
}
|
|
1644
|
-
|
|
1645
|
-
function getDevicesNotAllocatedCombo() {
|
|
1646
|
-
var query = "";
|
|
1647
|
-
var db_used = global.get("db_used");
|
|
1648
|
-
if (db_used) {
|
|
1649
|
-
switch (db_used) {
|
|
1650
|
-
case 'SQLITE':
|
|
1651
|
-
query = getDevicesNotAllocatedComboSQLite();
|
|
1652
|
-
break;
|
|
1653
|
-
case 'MYSQL':
|
|
1654
|
-
query = getDevicesNotAllocatedComboMySQL();
|
|
1655
|
-
break;
|
|
1656
|
-
}
|
|
1657
|
-
}
|
|
1658
|
-
else {
|
|
1659
|
-
query = getDevicesNotAllocatedComboSQLite();
|
|
1660
|
-
}
|
|
1661
|
-
return query;
|
|
1662
|
-
}
|
|
1663
1644
|
// End getDevicesNotAllocatedCombo
|
|
1664
1645
|
// Define getDevicesAllocatedCombo
|
|
1665
1646
|
function getDevicesAllocatedComboSQLite(id_site, id_place) {
|
|
@@ -3613,7 +3594,8 @@ module.exports = {
|
|
|
3613
3594
|
getDevicesInUseByPlaces,
|
|
3614
3595
|
getDevicesAllocatedComboSQLite,
|
|
3615
3596
|
getDevicesAllocatedComboMySQL,
|
|
3616
|
-
|
|
3597
|
+
getDevicesNotAllocatedComboSQLite,
|
|
3598
|
+
getDevicesNotAllocatedComboMySQL,
|
|
3617
3599
|
queryDeviceTypes,
|
|
3618
3600
|
queryDeviceManifactures,
|
|
3619
3601
|
getDevicesSelectByRelatedSQLite,
|