From eeec54c713eaab29fbb7f4255b798157d670a93e Mon Sep 17 00:00:00 2001 From: Johannes Hoermann <j.hoermann@adito.de> Date: Thu, 28 Mar 2019 10:13:30 +0100 Subject: [PATCH] Salesproject fixes --- .../SalesprojectSource_entity/SalesprojectSource_entity.aod | 3 +++ .../entityfields/entrydate/valueProcess.js | 6 ++++++ .../_____PREFERENCES_PROJECT/_____PREFERENCES_PROJECT.aod | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 entity/SalesprojectSource_entity/entityfields/entrydate/valueProcess.js diff --git a/entity/SalesprojectSource_entity/SalesprojectSource_entity.aod b/entity/SalesprojectSource_entity/SalesprojectSource_entity.aod index c8c6e96745f..41439ab453d 100644 --- a/entity/SalesprojectSource_entity/SalesprojectSource_entity.aod +++ b/entity/SalesprojectSource_entity/SalesprojectSource_entity.aod @@ -40,6 +40,8 @@ <contentType>DATE</contentType> <resolution>DAY</resolution> <outputFormat>dd.MM.yyyy</outputFormat> + <mandatory v="true" /> + <valueProcess>%aditoprj%/entity/SalesprojectSource_entity/entityfields/entrydate/valueProcess.js</valueProcess> </entityField> <entityField> <name>INFO</name> @@ -57,6 +59,7 @@ <name>SOURCE</name> <title>Touchpoint</title> <consumer>KeywordSources</consumer> + <mandatory v="true" /> <displayValueProcess>%aditoprj%/entity/SalesprojectSource_entity/entityfields/source/displayValueProcess.js</displayValueProcess> </entityField> <entityConsumer> diff --git a/entity/SalesprojectSource_entity/entityfields/entrydate/valueProcess.js b/entity/SalesprojectSource_entity/entityfields/entrydate/valueProcess.js new file mode 100644 index 00000000000..994a752c908 --- /dev/null +++ b/entity/SalesprojectSource_entity/entityfields/entrydate/valueProcess.js @@ -0,0 +1,6 @@ +import("system.neon"); +import("system.vars"); +import("system.result"); + +if (vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) + result.string(vars.get("$sys.date")) \ No newline at end of file diff --git a/preferences/_____PREFERENCES_PROJECT/_____PREFERENCES_PROJECT.aod b/preferences/_____PREFERENCES_PROJECT/_____PREFERENCES_PROJECT.aod index 2e627c2e517..35430f5089f 100644 --- a/preferences/_____PREFERENCES_PROJECT/_____PREFERENCES_PROJECT.aod +++ b/preferences/_____PREFERENCES_PROJECT/_____PREFERENCES_PROJECT.aod @@ -2,7 +2,7 @@ <preferences xmlns="http://www.adito.de/2018/ao/Model" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" VERSION="3.1.0" xsi:schemaLocation="http://www.adito.de/2018/ao/Model adito://models/xsd/preferences/3.1.0"> <name>_____PREFERENCES_PROJECT</name> <majorModelMode>DISTRIBUTED</majorModelMode> - <projectName>xRM-Basic2019</projectName> + <projectName>xRM-Basic5</projectName> <jditoMaxContentSize v="57671680" /> <calendarCategoriesEvent> <entry> -- GitLab