-UPDATE pkghead SET pkghead_version = '4.7.0' WHERE pkghead_name = 'xt';
+UPDATE pkghead SET pkghead_version = '4.7.0Beta2' WHERE pkghead_name = 'xt';
create or replace function xt.pg_advisory_unlock(oid integer, id integer) returns boolean as $$
- var sql = "select pg_catalog.pg_advisory_unlock($1, $2) as result;";
- return plv8.execute(sql, [oid, id])[0].result;
- /* temporary: let qt client use advisory locks but web client use xt.lock */
-
var pid = plv8.execute("select pg_backend_pid() as pid;")[0].pid,
username = plv8.execute("select geteffectivextuser() as username;")[0].username,
sql = "select * from xt.lock where lock_table_oid = $1 and lock_record_id = $2 and lock_username = $3 and lock_pid = $4;",
create or replace function xt.trylock(oid integer, id integer) returns boolean as $$
- var sql = "select public.trylock($1, $2) as result;";
- return plv8.execute(sql, [oid, id])[0].result;
- /* temporary: let qt client use advisory locks but web client use xt.lock */
-
var pid = plv8.execute("select pg_backend_pid() as pid;")[0].pid,
data = Object.create(XT.Data),
lock = data.tryLock(oid, id, {pid: pid});
-SELECT setMetric('ServerVersion', '4.7.0');
+SELECT setMetric('ServerVersion', '4.7.0Beta2');
*/
setList: function (options) {
var component,
- list = options.list;
+ contentHeader = this.$.contentHeader,
+ list = options.list;
component = this.createComponent({
name: "list",
memoizeEnabled: false,
fit: true
});
+
+ contentHeader.destroyClientControls();
+ if (component.headerComponents) {
+ contentHeader.createComponents(component.headerComponents);
+ contentHeader.render();
+ }
}
this.init = true;
"author": "xTuple <dev@xtuple.com>",
"name": "xtuple",
"description": "xTuple Enterprise Resource Planning Mobile-Web client",
- "version": "4.7.0",
+ "version": "4.7.0-beta2",
"repository": {
"type": "git",
"url": "https://github.com/xtuple/xtuple.git"
-<package id = "distribution-install-470"
- version = "4.7.0"
+<package id = "distribution-install-470beta2"
+ version = "4.7.0Beta2"
developer = "xTuple"
descrip = "load PostBooks resources"
updater = "2.2.4" >
<prerequisite type = "query"
name = "Checking for too-new xTuple ERP database version" >
- <query>SELECT NOT fetchMetricText('ServerVersion') >= '4.8.0';</query>
- <message>This package may not be applied to a database newer than 4.7.0.
+ <query>SELECT NOT fetchMetricText('ServerVersion') >= '4.7.0Beta2' AND fetchMetricText('ServerVersion') != '4.7.0';</query>
+ <message>This package may not be applied to a database newer than 4.7.0Beta.
</message>
</prerequisite>
-<package id = "distribution-upgrade-470"
- version = "4.7.0"
+<package id = "distribution-upgrade-470beta2"
+ version = "4.7.0Beta2"
developer = "xTuple"
descrip = "load PostBooks resources"
updater = "2.2.4" >
<prerequisite type = "query"
name = "Checking for too-new xTuple ERP database version" >
- <query>SELECT NOT fetchMetricText('ServerVersion') >= '4.8.0';</query>
- <message>This package may not be applied to a database newer than 4.7.0.
+ <query>SELECT NOT fetchMetricText('ServerVersion') >= '4.7.0Beta2' AND fetchMetricText('ServerVersion') != '4.7.0';</query>
+ <message>This package may not be applied to a database newer than 4.7.0Beta.
</message>
</prerequisite>
-<package id = "postbooks-upgrade-470"
- version = "4.7.0"
+<package id = "postbooks-upgrade-470beta2"
+ version = "4.7.0Beta2"
developer = "xTuple"
descrip = "load PostBooks resources"
updater = "2.2.4" >
<prerequisite type = "query"
name = "Checking for too-new xTuple ERP database version" >
- <query>SELECT NOT fetchMetricText('ServerVersion') >= '4.8.0';</query>
- <message>This package may not be applied to a database newer than 4.7.0.
+ <query>SELECT NOT fetchMetricText('ServerVersion') >= '4.7.0Beta2' AND fetchMetricText('ServerVersion') != '4.7.0';</query>
+ <message>This package may not be applied to a database newer than 4.7.0Beta.
</message>
</prerequisite>
-<package id = "manufacturing-install-470"
- version = "4.7.0"
+<package id = "manufacturing-install-470beta2"
+ version = "4.7.0Beta2"
developer = "xTuple"
descrip = "load PostBooks resources"
updater = "2.2.4" >
<prerequisite type = "query"
name = "Checking for too-new xTuple ERP database version" >
- <query>SELECT NOT fetchMetricText('ServerVersion') >= '4.8.0';</query>
- <message>This package may not be applied to a database newer than 4.7.0.
+ <query>SELECT NOT fetchMetricText('ServerVersion') >= '4.7.0Beta2' AND fetchMetricText('ServerVersion') != '4.7.0';</query>
+ <message>This package may not be applied to a database newer than 4.7.0Beta.
</message>
</prerequisite>
-<package id = "manufacturing-upgrade-470"
- version = "4.7.0"
+<package id = "manufacturing-upgrade-470beta2"
+ version = "4.7.0Beta2"
developer = "xTuple"
descrip = "load PostBooks resources"
updater = "2.2.4" >
<prerequisite type = "query"
name = "Checking for too-new xTuple ERP database version" >
-<query>SELECT NOT fetchMetricText('ServerVersion') >= '4.8.0';</query>
- <message>This package may not be applied to a database newer than 4.7.0.
+<query>SELECT NOT fetchMetricText('ServerVersion') >= '4.7.0Beta2' AND fetchMetricText('ServerVersion') != '4.7.0';</query>
+ <message>This package may not be applied to a database newer than 4.7.0Beta2.
</message>
</prerequisite>
@description When currency or invoice date is changed outstanding credit should be
recalculated.
*/
- it.("When currency or invoice date is changed outstanding credit should be recalculated",
+ it.skip("When currency or invoice date is changed outstanding credit should be recalculated",
function (done) {
this.timeout(9000);