Skip to content
Snippets Groups Projects
Commit dea79473 authored by Johannes Goderbauer's avatar Johannes Goderbauer
Browse files

[Projekt: Entwicklung - Neon][TicketNr.: 1024138][Adressdarstellung bei...

[Projekt: Entwicklung - Neon][TicketNr.: 1024138][Adressdarstellung bei Kontakten - es sollen auch die Firmenadressen gelistet werden]
parent 73b79aeb
No related branches found
No related tags found
No related merge requests found
import("system.result");
import("system.db");
import("system.vars");
import("Sql_lib");
var orgId, orgRelId, sqlHelper;
sqlHelper = new LegacySqlUtils();
orgId = vars.get("$field.ORGID");
if (orgId){
orgRelId = db.cell(["select RELATION.RELATIONID from RELATION where RELATION.PERS_ID is null and RELATION.ORG_ID = ?",
[
[orgId, sqlHelper.getSingleColumnType("RELATION", "ORG_ID")]
]]);
result.string(orgRelId);
}
\ 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