Skip to content
Snippets Groups Projects
Commit cd2ff65e authored by Tobias Feldmann's avatar Tobias Feldmann
Browse files

#1058838 salesproject probability calculation with ai

parent b4422bf2
No related branches found
No related tags found
No related merge requests found
......@@ -740,6 +740,12 @@
<iconId>VAADIN:PLAY</iconId>
<stateProcess>%aditoprj%/entity/Salesproject_entity/entityfields/startworkflow/stateProcess.js</stateProcess>
</entityActionField>
<entityField>
<name>PROBABILITY_AI</name>
<title>Wahrscheinlichkeit KI</title>
<state>READONLY</state>
<valueProcess>%aditoprj%/entity/Salesproject_entity/entityfields/probability_ai/valueProcess.js</valueProcess>
</entityField>
</entityFields>
<recordContainers>
<dbRecordContainer>
......
import("system.vars");
import("system.logging");
import("system.result");
import("AISalesproject_lib");
result.string(AISalesprojectUtil.classify(vars.getString("$field.SALESPROJECTID"),
vars.getString("$field.CONTACT_ID"),
vars.getString("$field.PHASE"),
vars.getString("$field.STATUS"),
vars.getString("$field.VOLUME"),
vars.getString("$field.PROBABILITY")));
\ No newline at end of file
......@@ -77,6 +77,10 @@
<name>9f6b967e-5140-420f-84ca-2273920221bd</name>
<entityField>PROJECTTITLE</entityField>
</neonTableColumn>
<neonTableColumn>
<name>20f132ef-161e-4b84-b6ae-1f4daf016d16</name>
<entityField>PROBABILITY_AI</entityField>
</neonTableColumn>
<neonTableColumn>
<name>fec843c3-f7c0-42c7-8295-50386651edb2</name>
<entityField>STARTDATE</entityField>
......
......@@ -53,6 +53,10 @@
<name>0ba7dcb5-9606-4d74-8455-3423a16fd98a</name>
<entityField>PROBABILITY</entityField>
</entityFieldLink>
<entityFieldLink>
<name>bee2acfb-20ac-485e-be6c-c9c6a25e6013</name>
<entityField>PROBABILITY_AI</entityField>
</entityFieldLink>
<entityFieldLink>
<name>950d21a3-c0f9-4df5-9810-fa027a6fdb4a</name>
<entityField>VOLUME</entityField>
......
......@@ -18,6 +18,7 @@ $AttributeRegistry.targetGroup$competitior = function(){return "1d30d0ab-6103-49
$AttributeRegistry.departments = function(){return "87d4ff5b-0ab6-4534-be26-76c6ef486072";};
$AttributeRegistry.salesprojectType = function(){return "fd3963bc-8e60-411a-9911-b97eb73e5cf7";};
$AttributeRegistry.responsibleADsupervisor = function(){return "c0b26482-c0aa-413d-a9c3-f44c56bd04a9";};
$AttributeRegistry.industry = function(){return "7e9927a4-41e4-426f-bddd-c3e9ee3b093e";};
$AttributeRegistry.visitPlanFrequency = function(){return "547b8b9d-88ba-4590-9e01-34d2a58116cc";};
$AttributeRegistry.visitPlanFrequency$monthly = function(){return "8c100817-1d2b-4fc7-8fdd-fd0370e19385";};
......
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