Skip to content
Snippets Groups Projects
Commit 3de2c450 authored by Sebastian Listl's avatar Sebastian Listl :speech_balloon:
Browse files

#1063786 Person address filter not working on standard address from organisation

parent baba3098
No related branches found
No related tags found
No related merge requests found
import("system.vars");
import("system.result");
result.string("CONTACTID in (select CONTACT_ID from ADDRESS where " + vars.get("$local.condition") + " )");
\ No newline at end of file
//because the standard address can also be from the organisation, the condition is used directly here so that it applies to the joined standard
//address and for all other addresses of the contact a subselect is necessary
result.string("((" + vars.get("$local.condition") + ")\
or exists (select ADDRESS.ADDRESSID from ADDRESS where ADDRESS.CONTACT_ID = CONTACT.CONTACTID and (" + vars.get("$local.condition") + ")))");
\ No newline at end of file
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