Skip to content
Snippets Groups Projects
Commit 2bde6954 authored by Maximilian Schröger's avatar Maximilian Schröger
Browse files

Angebot: Sprache aus Relation vorbelegen

parent 3787ccfd
No related branches found
No related tags found
No related merge requests found
......@@ -79,6 +79,7 @@
<columnName>RELATION_ID</columnName>
<caption>Contact / Company</caption>
<mandatory v="true" />
<onValueChange>%aditoprj%/entity/Offer_entity/entityfields/relation_id/onValueChange.js</onValueChange>
</entityField>
<entityField>
<name>SALESPROJECT_ID</name>
......
import("system.vars");
import("system.db");
var relid = vars.get("$local.value");
if(relid != "")
{
var relData = db.array(db.ROW, "select LANGUAGE from RELATION where RELATIONID = '" + relid + "'");
vars.set("$field.LANGUAGE", relData[0]);
}
\ 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