Skip to content
Snippets Groups Projects
Commit d9105de3 authored by Benjamin Ulrich's avatar Benjamin Ulrich :speech_balloon:
Browse files

Merge branch...

Merge branch 'sales_pn_1078650_inactive_gebietsverantwortliche_sollen_nicht_angezeigt_werden' into '2021.1'

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

See merge request xrm/basic!974
parents 8bc2b5eb 6184461e
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"]);
......
...@@ -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>
......
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