Skip to content
Snippets Groups Projects
Commit 6184461e authored by Pascal Neub's avatar Pascal Neub Committed by Benjamin Ulrich
Browse files

[Projekt: xRM-Sales][TicketNr.: 1078650][Project Member List- inaktive...

[Projekt: xRM-Sales][TicketNr.: 1078650][Project Member List- inaktive Gebietsverantwortliche werden angezeigt]
parent 37aa0afb
No related branches found
No related tags found
No related merge requests found
...@@ -229,6 +229,10 @@ ...@@ -229,6 +229,10 @@
<name>DistrictResponsibleAdvisers</name> <name>DistrictResponsibleAdvisers</name>
<lookupIdfield>EMPLOYEE_CONTACT_ID</lookupIdfield> <lookupIdfield>EMPLOYEE_CONTACT_ID</lookupIdfield>
</entityProvider> </entityProvider>
<entityParameter>
<name>OnlyActive_param</name>
<expose v="true" />
</entityParameter>
</entityFields> </entityFields>
<recordContainers> <recordContainers>
<dbRecordContainer> <dbRecordContainer>
......
...@@ -2,6 +2,7 @@ import("system.entities"); ...@@ -2,6 +2,7 @@ import("system.entities");
import("system.result"); import("system.result");
import("system.vars"); import("system.vars");
import("Sql_lib"); import("Sql_lib");
import("KeywordRegistry_basic");
var districtId = vars.get("$param.DistrictId_param"); var districtId = vars.get("$param.DistrictId_param");
var orgUid = vars.get("$param.OrgUid_param"); var orgUid = vars.get("$param.OrgUid_param");
...@@ -22,4 +23,14 @@ else if(orgUid) ...@@ -22,4 +23,14 @@ else if(orgUid)
} }
} }
if(vars.exists("$param.OnlyActive_param") && vars.get("$param.OnlyActive_param"))
{
// not equal on null is undefined behavior
cond.and(newWhere(
"DISTRICTRESPONSIBLE.ADVISER_STATUS",
$KeywordRegistry.contactStatus$inactive(),
SqlBuilder.NOT_EQUAL()
).or("DISTRICTRESPONSIBLE.ADVISER_STATUS is null"));
}
result.string(cond.toString()); result.string(cond.toString());
\ No newline at end of file
...@@ -75,6 +75,7 @@ if (Utils.isNullOrEmpty(idValues) || memberRows.length === 0) ...@@ -75,6 +75,7 @@ if (Utils.isNullOrEmpty(idValues) || memberRows.length === 0)
.entity("DistrictResponsible_entity") .entity("DistrictResponsible_entity")
.provider("OrganisationResponsibles") .provider("OrganisationResponsibles")
.addParameter("OrgUid_param", orgContactId) .addParameter("OrgUid_param", orgContactId)
.addParameter("OnlyActive_param", true)
.fields(["#UID","DISTRICTRESPONSIBLEID", "DISTRICT_ID", "EMPLOYEE_CONTACT_ID", .fields(["#UID","DISTRICTRESPONSIBLEID", "DISTRICT_ID", "EMPLOYEE_CONTACT_ID",
"EMPLOYEE_CONTACT_ID.displayValue", "USER_EDIT", "USER_NEW", "EMPLOYEE_CONTACT_ID.displayValue", "USER_EDIT", "USER_NEW",
"departmentAttributeName", "DATE_EDIT", "DATE_NEW"]); "departmentAttributeName", "DATE_EDIT", "DATE_NEW"]);
......
...@@ -8632,6 +8632,12 @@ ...@@ -8632,6 +8632,12 @@
<entry> <entry>
<key>Global Cases </key> <key>Global Cases </key>
</entry> </entry>
<entry>
<key>Attributes of attribute group \"%0\" have to be used at least %1.</key>
</entry>
<entry>
<key>Attributes of attribute group \"%0\" can't be used more than %1.</key>
</entry>
</keyValueMap> </keyValueMap>
<font name="Dialog" style="0" size="11" /> <font name="Dialog" style="0" size="11" />
<sqlModels> <sqlModels>
......
...@@ -11220,6 +11220,7 @@ Bitte Datumseingabe prüfen</value> ...@@ -11220,6 +11220,7 @@ Bitte Datumseingabe prüfen</value>
</entry> </entry>
<entry> <entry>
<key>Buying center and internal project team</key> <key>Buying center and internal project team</key>
<value>Vertriebscenter und internes Projektteam</value>
</entry> </entry>
<entry> <entry>
<key>Starts the serverprocess manually, which will recalculate all (potentially) outdated classifications. Use this after changes to the configuration of classifications.</key> <key>Starts the serverprocess manually, which will recalculate all (potentially) outdated classifications. Use this after changes to the configuration of classifications.</key>
......
...@@ -8717,6 +8717,12 @@ ...@@ -8717,6 +8717,12 @@
<entry> <entry>
<key>Global Cases </key> <key>Global Cases </key>
</entry> </entry>
<entry>
<key>Attributes of attribute group \"%0\" have to be used at least %1.</key>
</entry>
<entry>
<key>Attributes of attribute group \"%0\" can't be used more than %1.</key>
</entry>
</keyValueMap> </keyValueMap>
<font name="Dialog" style="0" size="11" /> <font name="Dialog" style="0" size="11" />
</language> </language>
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