Skip to content
Snippets Groups Projects
Commit a397269a authored by Johannes Hörmann's avatar Johannes Hörmann
Browse files

Merge origin/master

parents 3dd204b1 e3a86df2
No related branches found
No related tags found
No related merge requests found
......@@ -85,7 +85,7 @@ OrgUtils.openOrgReport = function(pOrgId)
+ " from PERS join RELATION on PERSID = PERS_ID";
persSql = SqlCondition.begin()
.andPrepare("RELATION.ORG_ID", pOrgId)
.and("RELATION.STATUS = 1")
.and("RELATION.STATUS = 'BSIC0rel-stat-actv-ae03-b6b04430e90b'") //TODO: replace this with something that isn't a hard coded id
.buildSql(persSql, "", " order by PERS.LASTNAME asc");
var persData = db.table(persSql);
......@@ -121,7 +121,7 @@ OrgUtils.openOrgReport = function(pOrgId)
var histSql = "select ENTRYDATE, CATEGORY, FIRSTNAME, LASTNAME, INFO from ACTIVITY "
+ " join ACTIVITYLINK on ACTIVITYLINK.ACTIVITY_ID = ACTIVITYID "
+ " join RELATION on ACTIVITYLINK.ROW_ID = RELATIONID"
+ " join RELATION on ACTIVITYLINK.OBJECT_ROWID = RELATIONID"
+ " left join PERS on RELATION.PERS_ID = PERSID";
histSql = SqlCondition.begin()
.andPrepare("RELATION.ORG_ID", pOrgId) //= all activities linked to the organization or an employee
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment