Skip to content
Snippets Groups Projects
Commit 02224049 authored by Pascal Neub's avatar Pascal Neub
Browse files

[Projekt: xRM-Sales][TicketNr.: 1081069][Angebot/Beleg/Vertrag anlegen für...

[Projekt: xRM-Sales][TicketNr.: 1081069][Angebot/Beleg/Vertrag anlegen für Kontakt, der zur Löschung vorgesehen, ist in den Contexten im Gegensatz zur 360 Grad  möglich]
parent 0e4b4da4
No related branches found
No related tags found
No related merge requests found
......@@ -127,6 +127,10 @@ See ContactUtils.getRelationTypeByPersOrg for possible values</description>
<name>#PROVIDER_AGGREGATES</name>
<useAggregates v="true" />
</entityProvider>
<entityParameter>
<name>IgnoreContactStates_param</name>
<expose v="true" />
</entityParameter>
</entityFields>
<recordContainers>
<dbRecordContainer>
......
......@@ -33,7 +33,15 @@ var cond = newWhereIfSet(conditionPrivateOrganisation)
.andIfSet("CONTACT.ORGANISATION_ID", orgContactId);
var contactIds = vars.exists("$param.ContactIds_param") && vars.get("$param.ContactIds_param");
if (contactIds)
if (contactIds)
{
cond.andIfSet("CONTACT.CONTACTID", JSON.parse(contactIds), SqlBuilder.IN());
}
var ignoredContactStates = vars.exists("$param.IgnoreContactStates_param") && vars.get("$param.IgnoreContactStates_param");
if (ignoredContactStates)
{
cond.andIfSet("CONTACT.STATUS", JSON.parse(ignoredContactStates), SqlBuilder.NOT_IN());
}
result.string(cond.toString());
\ No newline at end of file
......@@ -183,6 +183,12 @@
<entityName>AnyContact_entity</entityName>
<fieldName>#PROVIDER</fieldName>
</dependency>
<children>
<entityParameter>
<name>IgnoreContactStates_param</name>
<valueProcess>%aditoprj%/entity/Contract_entity/entityfields/anycontacts/children/ignorecontactstates_param/valueProcess.js</valueProcess>
</entityParameter>
</children>
</entityConsumer>
<entityProvider>
<name>#PROVIDER</name>
......
import("system.result");
import("KeywordRegistry_basic");
result.string(JSON.stringify([
$KeywordRegistry.contactStatus$inactive(),
$KeywordRegistry.contactStatus$markToDelete()
]));
......@@ -237,6 +237,10 @@
<valueProcess>%aditoprj%/entity/Offer_entity/entityfields/anycontacts/children/contactids_param/valueProcess.js</valueProcess>
<expose v="true" />
</entityParameter>
<entityParameter>
<name>IgnoreContactStates_param</name>
<valueProcess>%aditoprj%/entity/Offer_entity/entityfields/anycontacts/children/ignorecontactstates_param/valueProcess.js</valueProcess>
</entityParameter>
</children>
</entityConsumer>
<entityConsumer>
......
import("system.result");
import("KeywordRegistry_basic");
result.string(JSON.stringify([
$KeywordRegistry.contactStatus$inactive(),
$KeywordRegistry.contactStatus$markToDelete()
]));
......@@ -182,6 +182,12 @@
<entityName>AnyContact_entity</entityName>
<fieldName>#PROVIDER</fieldName>
</dependency>
<children>
<entityParameter>
<name>IgnoreContactStates_param</name>
<valueProcess>%aditoprj%/entity/Order_entity/entityfields/anycontacts/children/ignorecontactstates_param/valueProcess.js</valueProcess>
</entityParameter>
</children>
</entityConsumer>
<entityConsumer>
<name>Documents</name>
......
import("system.result");
import("KeywordRegistry_basic");
result.string(JSON.stringify([
$KeywordRegistry.contactStatus$inactive(),
$KeywordRegistry.contactStatus$markToDelete()
]));
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