Skip to content
Snippets Groups Projects
Commit 91bd5540 authored by Johannes Goderbauer's avatar Johannes Goderbauer Committed by Benjamin Ulrich
Browse files

Campaigncost: display currency

parent d647f6ab
No related branches found
No related tags found
No related merge requests found
......@@ -239,6 +239,9 @@
</entityParameter>
<entityField>
<name>CURRENCY</name>
<title>Currency</title>
<state>READONLY</state>
<valueProcess>%aditoprj%/entity/CampaignCost_entity/entityfields/currency/valueProcess.js</valueProcess>
</entityField>
</entityFields>
<recordContainers>
......
import("system.neon");
import("system.result");
import("system.vars");
import("Sql_lib");
if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW && vars.get("$this.value") == null)
{
var campaignId = vars.get("$field.CAMPAIGN_ID");
if (campaignId)
{
var currency = newSelect("CAMPAIGN.CURRENCY").from("CAMPAIGN").where("CAMPAIGN.CAMPAIGNID", campaignId).cell();
result.string(currency);
}
}
\ No newline at end of file
......@@ -26,6 +26,10 @@
<name>23f1ec3b-91b3-44b6-bf2b-a976da6e3778</name>
<entityField>NET</entityField>
</entityFieldLink>
<entityFieldLink>
<name>f60b4663-592f-4ddf-ad78-9478289086c2</name>
<entityField>CURRENCY</entityField>
</entityFieldLink>
</fields>
</genericViewTemplate>
</children>
......
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