Skip to content
Snippets Groups Projects
Commit 3dbc5a72 authored by Johannes Hörmann's avatar Johannes Hörmann
Browse files

Meilensteine auf neue Keyword-logik umbauen

parent 84fb920d
No related branches found
No related tags found
No related merge requests found
Showing
with 304 additions and 135 deletions
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd">
<changeSet dbms="derby" author="j.hoermann" id="be098ba0-30ed-4e01-893e-928b1ac86923">
<sql>
ALTER TABLE SALESPROJECT_MILESTONE ADD COLUMN TYPE_NEW VARCHAR(80);
UPDATE SALESPROJECT_MILESTONE SET TYPE_NEW=CHAR(TYPE);
ALTER TABLE SALESPROJECT_MILESTONE DROP COLUMN TYPE;
RENAME COLUMN SALESPROJECT_MILESTONE.TYPE_NEW TO TYPE;
ALTER TABLE SALESPROJECT_MILESTONE ADD COLUMN VALUE_NEW CHAR(36);
UPDATE SALESPROJECT_MILESTONE SET VALUE_NEW=CHAR(VALUE);
ALTER TABLE SALESPROJECT_MILESTONE DROP COLUMN VALUE;
RENAME COLUMN SALESPROJECT_MILESTONE.VALUE_NEW TO VALUE;
</sql>
</changeSet>
</databaseChangeLog>
\ No newline at end of file
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd">
<changeSet dbms="!derby" author="j.hoermann" id="f5074961-4aa0-4cd8-8541-7381ddfb0b71">
<modifyDataType tableName="SALESPROJECT_MILESTONE" columnName="TYPE" newDataType="NVARCHAR(80)"/>
<modifyDataType tableName="SALESPROJECT_MILESTONE" columnName="VALUE" newDataType="CHAR(36)"/>
</changeSet>
</databaseChangeLog>
\ No newline at end of file
......@@ -136,4 +136,10 @@
<!-- Derby needs special handling -->
<include relativeToChangelogFile="true" file="alter_activityLink_notDerby.xml" />
<include relativeToChangelogFile="true" file="alter_activityLink_Derby.xml" />
<include relativeToChangelogFile="true" file="renameCycle_to_Milestone.xml" />
<!-- Derby needs special handling -->
<include relativeToChangelogFile="true" file="change_Milestone_datatype_to_new_Keyword_logic_notDerby.xml" />
<include relativeToChangelogFile="true" file="change_Milestone_datatype_to_new_Keyword_logic_Derby.xml" />
<include relativeToChangelogFile="true" file="update_Milestone_to_new_Keyword.xml" />
</databaseChangeLog>
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd">
<changeSet author="j.hoermann" id="da0982c9-8541-43a2-ae3f-cfb179a6b8c3">
<renameTable oldTableName="SALESPROJECT_CYCLE" newTableName="SALESPROJECT_MILESTONE"/>
<renameColumn tableName="SALESPROJECT_MILESTONE" columnDataType="CHAR(36)" newColumnName="SALESPROJECT_MILESTONEID" oldColumnName="SALESPROJECT_CYCLEID"/>
<dropPrimaryKey tableName="SALESPROJECT_MILESTONE" constraintName="PK_SALESPROJECT_CYCLE_SALESPROJECT_CYCLEID"/>
<addPrimaryKey tableName="SALESPROJECT_MILESTONE" constraintName="PK_SALESPROJECT_MILESTONE_SALESPROJECT_MILESTONEID" columnNames="SALESPROJECT_MILESTONEID"/>
</changeSet>
</databaseChangeLog>
\ No newline at end of file
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd">
<changeSet author="j.hoermann" id="ec9bae68-ca27-4597-9808-fc333246b3a0">
<update tableName="SALESPROJECT_MILESTONE">
<column name="TYPE" value="SalesprojectPhase"/>
<where>TYPE = ?</where>
<whereParams>
<param value="1" />
</whereParams>
</update>
<update tableName="SALESPROJECT_MILESTONE">
<column name="VALUE" value="9f7d1fa9-7c09-4037-8f7c-8458def14d89"/>
<where>TYPE = ? and VALUE in (?,?,?,?,?,?,?,?,?,?,?)</where>
<whereParams>
<param value="SalesprojectPhase" />
<param value="1" />
<param value="7" />
<param value="8" />
<param value="9" />
<param value="10" />
<param value="11" />
<param value="12" />
<param value="13" />
<param value="14" />
<param value="15" />
<param value="16" />
</whereParams>
</update>
<update tableName="SALESPROJECT_MILESTONE">
<column name="VALUE" value="292628f1-d9a5-432d-8130-f6690c14a5d4"/>
<where>TYPE = ? and VALUE = ?</where>
<whereParams>
<param value="SalesprojectPhase" />
<param value="2" />
</whereParams>
</update>
<update tableName="SALESPROJECT_MILESTONE">
<column name="VALUE" value="4467b33c-3a68-4c8b-ba4a-1eb666a6c774"/>
<where>TYPE = ? and VALUE = ?</where>
<whereParams>
<param value="SalesprojectPhase" />
<param value="3" />
</whereParams>
</update>
<update tableName="SALESPROJECT_MILESTONE">
<column name="VALUE" value="1e42f183-fb97-415f-9917-b43ca159fde4"/>
<where>TYPE = ? and VALUE = ?</where>
<whereParams>
<param value="SalesprojectPhase" />
<param value="4" />
</whereParams>
</update>
<update tableName="SALESPROJECT_MILESTONE">
<column name="VALUE" value="972a41dc-a8ae-43cd-a03b-522ea84efbfb"/>
<where>TYPE = ? and VALUE = ?</where>
<whereParams>
<param value="SalesprojectPhase" />
<param value="5" />
</whereParams>
</update>
<update tableName="SALESPROJECT_MILESTONE">
<column name="VALUE" value="60d09bb1-7e02-4003-99bf-18b739a577ad"/>
<where>TYPE = ? and VALUE = ?</where>
<whereParams>
<param value="SalesprojectPhase" />
<param value="6" />
</whereParams>
</update>
<update tableName="SALESPROJECT_MILESTONE">
<column name="VALUE" value="213c8184-f930-457e-8605-703baaf21d4a"/>
<where>TYPE = ? and VALUE = ?</where>
<whereParams>
<param value="SalesprojectPhase" />
<param value="7" />
</whereParams>
</update>
<update tableName="SALESPROJECT_MILESTONE">
<column name="TYPE" value="SalesprojectState"/>
<where>TYPE = ?</where>
<whereParams>
<param value="2" />
</whereParams>
</update>
<update tableName="SALESPROJECT_MILESTONE">
<column name="VALUE" value="483bcaeb-1e5b-4772-b54e-7d7d8aa65712"/>
<where>TYPE = ? and VALUE = ?</where>
<whereParams>
<param value="SalesprojectState" />
<param value="1" />
</whereParams>
</update>
<update tableName="SALESPROJECT_MILESTONE">
<column name="VALUE" value="23d38486-4cce-41ce-a8df-164ad44df706"/>
<where>TYPE = ? and VALUE = ?</where>
<whereParams>
<param value="SalesprojectState" />
<param value="2" />
</whereParams>
</update>
<update tableName="SALESPROJECT_MILESTONE">
<column name="VALUE" value="8916e241-9452-4541-a323-d479ad5f2e4d"/>
<where>TYPE = ? and VALUE = ?</where>
<whereParams>
<param value="SalesprojectState" />
<param value="3" />
</whereParams>
</update>
<update tableName="SALESPROJECT_MILESTONE">
<column name="VALUE" value="1606cf46-a87b-4797-830e-55ebdd70a001"/>
<where>TYPE = ? and VALUE = ?</where>
<whereParams>
<param value="SalesprojectState" />
<param value="4" />
</whereParams>
</update>
<update tableName="SALESPROJECT_MILESTONE">
<column name="VALUE" value="130bb53a-a97e-455e-8f34-8d445e985474"/>
<where>TYPE = ? and VALUE = ?</where>
<whereParams>
<param value="SalesprojectState" />
<param value="5" />
</whereParams>
</update>
<update tableName="SALESPROJECT_MILESTONE">
<column name="VALUE" value="d8a60f60-a4e6-46ee-88ec-bac53e1afedd"/>
<where>TYPE = ? and VALUE = ?</where>
<whereParams>
<param value="SalesprojectState" />
<param value="6" />
</whereParams>
</update>
</changeSet>
</databaseChangeLog>
\ No newline at end of file
......@@ -2702,109 +2702,6 @@
</entityFieldDb>
</entityFields>
</entityDb>
<entityDb>
<name>SALESPROJECT_CYCLE</name>
<dbName></dbName>
<idColumn>SALESPROJECT_CYCLEID</idColumn>
<idGeneratorType v="0" />
<idGeneratorInterval v="1" />
<title></title>
<description></description>
<auditSyncConfig>
<name>auditSyncConfig</name>
<auditMode v="0" />
<syncActive v="false" />
<syncComplete v="true" />
<syncDirection v="1" />
<syncIds></syncIds>
</auditSyncConfig>
<entityFields>
<entityFieldDb>
<name>SALESPROJECT_CYCLEID</name>
<dbName></dbName>
<primaryKey v="true" />
<columnType v="1" />
<size v="36" />
<scale v="0" />
<notNull v="true" />
<isUnique v="true" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>DATE_START</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="93" />
<size v="29" />
<scale v="9" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>VALUE</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="4" />
<size v="10" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>SALESPROJECT_ID</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="1" />
<size v="36" />
<scale v="0" />
<notNull v="true" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>TYPE</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="4" />
<size v="10" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>DATE_END</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="93" />
<size v="29" />
<scale v="9" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
</entityFields>
</entityDb>
<entityDb>
<name>SALESPROJECT_FORECAST</name>
<dbName></dbName>
......@@ -5982,6 +5879,110 @@
</entityFieldDb>
</entityFields>
</entityDb>
<entityDb>
<name>SALESPROJECT_MILESTONE</name>
<dbName></dbName>
<idColumn>SALESPROJECT_MILESTONEID</idColumn>
<idGeneratorType v="0" />
<idGeneratorInterval v="1" />
<documentation></documentation>
<title></title>
<description></description>
<auditSyncConfig>
<name>auditSyncConfig</name>
<auditMode v="0" />
<syncActive v="false" />
<syncComplete v="true" />
<syncDirection v="1" />
<syncIds></syncIds>
</auditSyncConfig>
<entityFields>
<entityFieldDb>
<name>DATE_START</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="93" />
<size v="29" />
<scale v="9" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>VALUE</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="1" />
<size v="36" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>SALESPROJECT_ID</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="1" />
<size v="36" />
<scale v="0" />
<notNull v="true" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>TYPE</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="12" />
<size v="80" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>DATE_END</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="93" />
<size v="29" />
<scale v="9" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>SALESPROJECT_MILESTONEID</name>
<dbName></dbName>
<primaryKey v="true" />
<columnType v="1" />
<size v="36" />
<scale v="0" />
<notNull v="true" />
<isUnique v="true" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
</entityFields>
</entityDb>
</entities>
</entityGroup>
</aliasDefDb>
......
<?xml version="1.0" encoding="UTF-8"?>
<entity xmlns="http://www.adito.de/2018/ao/Model" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" VERSION="1.3.1" xsi:schemaLocation="http://www.adito.de/2018/ao/Model adito://models/xsd/entity/1.3.1">
<name>SalesprojectCycle_entity</name>
<name>SalesprojectMilestone_entity</name>
<title>Milestones</title>
<majorModelMode>DISTRIBUTED</majorModelMode>
<recordContainer>db</recordContainer>
......@@ -24,24 +24,24 @@
<outputFormat>dd.MM.yyyy</outputFormat>
</entityField>
<entityField>
<name>SALESPROJECT_CYCLEID</name>
<valueProcess>%aditoprj%/entity/SalesprojectCycle_entity/entityfields/salesproject_cycleid/valueProcess.js</valueProcess>
<name>SALESPROJECT_MILESTONEID</name>
<valueProcess>%aditoprj%/entity/SalesprojectMilestone_entity/entityfields/salesproject_milestoneid/valueProcess.js</valueProcess>
</entityField>
<entityField>
<name>SALESPROJECT_ID</name>
<valueProcess>%aditoprj%/entity/SalesprojectCycle_entity/entityfields/salesproject_id/valueProcess.js</valueProcess>
<valueProcess>%aditoprj%/entity/SalesprojectMilestone_entity/entityfields/salesproject_id/valueProcess.js</valueProcess>
</entityField>
<entityField>
<name>TYPE</name>
<title>Type</title>
<mandatory v="true" />
<possibleItemsProcess>%aditoprj%/entity/SalesprojectCycle_entity/entityfields/type/possibleItemsProcess.js</possibleItemsProcess>
<possibleItemsProcess>%aditoprj%/entity/SalesprojectMilestone_entity/entityfields/type/possibleItemsProcess.js</possibleItemsProcess>
</entityField>
<entityField>
<name>VALUE</name>
<title>Milestone</title>
<mandatory v="true" />
<possibleItemsProcess>%aditoprj%/entity/SalesprojectCycle_entity/entityfields/value/possibleItemsProcess.js</possibleItemsProcess>
<possibleItemsProcess>%aditoprj%/entity/SalesprojectMilestone_entity/entityfields/value/possibleItemsProcess.js</possibleItemsProcess>
</entityField>
<entityParameter>
<name>SalesprojectId_param</name>
......@@ -51,14 +51,14 @@
<description>PARAMETER</description>
</entityParameter>
<entityProvider>
<name>SalesprojectCycles</name>
<name>SalesprojectMilestones</name>
<fieldType>DEPENDENCY_IN</fieldType>
<recordContainer>db</recordContainer>
<dependencies>
<entityDependency>
<name>b05e2bdf-5d8b-4ba2-8dba-a8560c255470</name>
<entityName>Salesproject_entity</entityName>
<fieldName>SalesprojectCycles</fieldName>
<fieldName>SalesprojectMilestones</fieldName>
<isConsumer v="false" />
</entityDependency>
</dependencies>
......@@ -75,13 +75,13 @@
<name>db</name>
<title></title>
<alias>Data_alias</alias>
<conditionProcess>%aditoprj%/entity/SalesprojectCycle_entity/recordcontainers/db/conditionProcess.js</conditionProcess>
<onDBUpdate>%aditoprj%/entity/SalesprojectCycle_entity/recordcontainers/db/onDBUpdate.js</onDBUpdate>
<conditionProcess>%aditoprj%/entity/SalesprojectMilestone_entity/recordcontainers/db/conditionProcess.js</conditionProcess>
<onDBUpdate>%aditoprj%/entity/SalesprojectMilestone_entity/recordcontainers/db/onDBUpdate.js</onDBUpdate>
<linkInformation>
<linkInformation>
<name>464f1fd7-e5b6-4cfc-92f8-4873d4e10ce3</name>
<tableName>SALESPROJECT_CYCLE</tableName>
<primaryKey>SALESPROJECT_CYCLEID</primaryKey>
<tableName>SALESPROJECT_MILESTONE</tableName>
<primaryKey>SALESPROJECT_MILESTONEID</primaryKey>
<isUIDTable v="true" />
<readonly v="false" />
</linkInformation>
......@@ -89,27 +89,27 @@
<recordFieldMappings>
<dbRecordFieldMapping>
<name>DATE_END.value</name>
<recordfield>SALESPROJECT_CYCLE.DATE_END</recordfield>
<recordfield>SALESPROJECT_MILESTONE.DATE_END</recordfield>
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>DATE_START.value</name>
<recordfield>SALESPROJECT_CYCLE.DATE_START</recordfield>
<recordfield>SALESPROJECT_MILESTONE.DATE_START</recordfield>
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>SALESPROJECT_CYCLEID.value</name>
<recordfield>SALESPROJECT_CYCLE.SALESPROJECT_CYCLEID</recordfield>
<name>SALESPROJECT_MILESTONEID.value</name>
<recordfield>SALESPROJECT_MILESTONE.SALESPROJECT_MILESTONEID</recordfield>
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>TYPE.value</name>
<recordfield>SALESPROJECT_CYCLE.TYPE</recordfield>
<recordfield>SALESPROJECT_MILESTONE.TYPE</recordfield>
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>VALUE.value</name>
<recordfield>SALESPROJECT_CYCLE.VALUE</recordfield>
<recordfield>SALESPROJECT_MILESTONE.VALUE</recordfield>
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>SALESPROJECT_ID.value</name>
<recordfield>SALESPROJECT_CYCLE.SALESPROJECT_ID</recordfield>
<recordfield>SALESPROJECT_MILESTONE.SALESPROJECT_ID</recordfield>
</dbRecordFieldMapping>
</recordFieldMappings>
</dbRecordContainer>
......
......@@ -4,7 +4,7 @@ import("system.vars");
import("Sql_lib");
var cond = new SqlCondition();
cond.andPrepareVars("SALESPROJECT_CYCLE.SALESPROJECT_ID", "$param.SalesprojectId_param");
cond.andPrepareVars("SALESPROJECT_MILESTONE.SALESPROJECT_ID", "$param.SalesprojectId_param");
//TODO: use a preparedCondition when available #1030812 #1034026
result.string(db.translateCondition(cond.build("1 = 1")));
\ No newline at end of file
......@@ -2,5 +2,5 @@ import("system.result");
import("system.vars");
import("Keyword_lib");
var items = LegacyKeywordUtils.getStandardArray("SALESPROJECT.CYCLE.TYPE");
var items = LegacyKeywordUtils.getStandardArray("SALESPROJECT.MILESTONE.TYPE");
result.object(items);
\ No newline at end of file
......@@ -10,7 +10,7 @@ type = vars.getString("$field.TYPE");
// load the possible values based on the type.
if (type) {
keyword = LegacyKeywordUtils.get("SALESPROJECT.CYCLE.TYPE", type)[2].keyword;
keyword = LegacyKeywordUtils.get("SALESPROJECT.MILESTONE.TYPE", type)[2].keyword;
if (keyword) {
items = LegacyKeywordUtils.getStandardArray(keyword);
......
......@@ -4,7 +4,7 @@ import("system.vars");
import("Sql_lib");
var cond = new SqlCondition();
cond.andPrepareVars("SALESPROJECT_CYCLE.SALESPROJECT_ID", "$param.SalesprojectId_param");
cond.andPrepareVars("SALESPROJECT_MILESTONE.SALESPROJECT_ID", "$param.SalesprojectId_param");
//TODO: use a preparedCondition when available #1030812 #1034026
result.string(db.translateCondition(cond.build("1 = 1")));
\ No newline at end of file
......@@ -130,18 +130,18 @@
</children>
</entityConsumer>
<entityConsumer>
<name>SalesprojectCycles</name>
<name>SalesprojectMilestones</name>
<title>Milestone</title>
<fieldType>DEPENDENCY_OUT</fieldType>
<dependency>
<name>dependency</name>
<entityName>SalesprojectCycle_entity</entityName>
<fieldName>SalesprojectCycles</fieldName>
<entityName>SalesprojectMilestone_entity</entityName>
<fieldName>SalesprojectMilestones</fieldName>
</dependency>
<children>
<entityParameter>
<name>SalesprojectId_param</name>
<valueProcess>%aditoprj%/entity/Salesproject_entity/entityfields/salesprojectcycles/children/salesprojectid_param/valueProcess.js</valueProcess>
<valueProcess>%aditoprj%/entity/Salesproject_entity/entityfields/salesprojectmilestones/children/salesprojectid_param/valueProcess.js</valueProcess>
<triggerRecalculation v="true" />
</entityParameter>
</children>
......
import("system.vars");
import("Salesproject_lib");
Salesproject.insertMilestone(vars.getString("$field.SALESPROJECTID"), 1, vars.get("$field.PHASE"), false);
Salesproject.insertMilestone(vars.getString("$field.SALESPROJECTID"), 2, vars.get("$field.STATE"), true);
\ 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