Skip to content
Snippets Groups Projects
Commit 1bc423b9 authored by Sebastian Pongratz's avatar Sebastian Pongratz :ping_pong:
Browse files

Merge branch 'sales_1081505_FeatureMultiCurrencyCapability' into 'master'

Sales 1081505 feature multi currency capability

See merge request xrm/basic!1445
parents 6df4768b 29be9175
No related branches found
No related tags found
No related merge requests found
Showing
with 844 additions and 60 deletions
<?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd">
<include file="create_ab_currency.xml" relativeToChangelogFile="true"/>
</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="b.ulrich" id="2a1de93a-cc08-4b16-8aa5-6ff5ed15253e">
<createTable tableName="AB_CURRENCY">
<column name="NUMBERCODE" type="INTEGER(3)"/>
<column name="ISO4" type="CHAR(3)">
<constraints primaryKey="true" primaryKeyName="PK_AB_CURRENCY_ISO4"/>
</column>
<column name="NAME" type="NVARCHAR(100)">
<constraints nullable="false"/>
</column>
<column name="SIGN" type="NVARCHAR(100)"/>
<column name="ISACTIVE" type="TINYINT">
<constraints nullable="false"/>
</column>
</createTable>
</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:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd">
<changeSet author="b.ulrich" id="6d9c8928-3fe0-4093-aebc-a4ff54e96904">
<addColumn tableName="ADVERTISING">
<column name ="CURRENCYRATE_ID" type="VARCHAR(36)"/>
</addColumn>
</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:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd">
<changeSet dbms="derby" author="b.ulrich" id="062f385c-fa7e-4890-9529-602044f3ac25">
<sql>
ALTER TABLE FORECAST ADD VOLUME_NEW NUMERIC(14,2);
UPDATE FORECAST SET VOLUME_NEW = CAST ( VOLUME as NUMERIC(14,2));
ALTER TABLE FORECAST DROP COLUMN VOLUME;
RENAME COLUMN FORECAST.VOLUME_NEW TO VOLUME;
</sql>
</changeSet>
<changeSet author="b.ulrich" id="6cb184f3-d010-438c-a1fc-3077cff3cd67">
<preConditions onFail="CONTINUE">
<not>
<dbms type="derby" />
</not>
</preConditions>
<modifyDataType columnName="VOLUME" newDataType="NUMERIC(14,2)" tableName="FORECAST"/>
</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:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd">
<changeSet author="b.ulrich" id="491b21d1-1dee-4afe-8310-df5abaa33e1d">
<addColumn tableName="OFFER">
<column name ="CURRENCYRATE_ID" type="VARCHAR(36)"/>
</addColumn>
</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:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd">
<changeSet author="b.ulrich" id="368d9124-281b-4c80-a417-9a55157f99b8">
<addColumn tableName="PRODUCTPRICE">
<column name ="CURRENCYRATE_ID" type="VARCHAR(36)"/>
</addColumn>
<dropNotNullConstraint
columnDataType="VARCHAR(36)"
columnName="CURRENCY"
tableName="PRODUCTPRICE"/>
</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:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd">
<changeSet author="b.ulrich" id="c24e37d0-9f13-421e-a1e0-167bd2efbd88">
<addColumn tableName="SALESORDER">
<column name ="CURRENCYRATE_ID" type="VARCHAR(36)"/>
</addColumn>
</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:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd">
<changeSet author="b.ulrich" id="344f2b8e-1805-40e2-b27a-ed3054d2b354">
<addColumn tableName="SALESPROJECT">
<column name ="CURRENCYRATE_ID" type="VARCHAR(36)"/>
</addColumn>
</changeSet>
</databaseChangeLog>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd">
<include file="create_CurrencyRate.xml" relativeToChangelogFile="true"/>
<include file="alter_Salesproject.xml" relativeToChangelogFile="true"/>
<include file="alter_Forecast.xml" relativeToChangelogFile="true"/>
<include file="alter_Advertising.xml" relativeToChangelogFile="true"/>
<include file="alter_Offer.xml" relativeToChangelogFile="true"/>
<include file="alter_Productprice.xml" relativeToChangelogFile="true"/>
<include file="alter_Salesorder.xml" relativeToChangelogFile="true"/>
</databaseChangeLog>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd">
<changeSet author="b.ulrich" id="ba924567-e017-40ac-af64-3595fbc8daa1">
<createTable tableName="CURRENCYRATE">
<column name="CURRENCYRATEID" type="CHAR(36)">
<constraints primaryKey="true" primaryKeyName="PK_CURRENCYRATE_CURRENCYRATEID"/>
</column>
<column name="CURRENCYRATE" type="FLOAT"/>
<column name="SOURCECURRENCYISO" type="CHAR(3)"/>
<column name="TARGETCURRENCYISO" type="CHAR(3)"/>
<column name="VALID_FROM" type="DATETIME"/>
<column name="USER_NEW" type="NVARCHAR(50)" />
<column name="DATE_NEW" type="DATETIME" />
</createTable>
</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:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd">
<include relativeToChangelogFile="true" file="CurrencyRate/changelog.xml"/>
<include relativeToChangelogFile="true" file="Currency/changelog.xml"/>
</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">
<include file="generatedData/ab_currency.xml" relativeToChangelogFile="true"/>
<include file="generatedData/ab_appointmentlink.xml" relativeToChangelogFile="true"/>
<include file="generatedData/ab_attributerelation.xml" relativeToChangelogFile="true"/>
<include file="generatedData/ab_ctilog.xml" relativeToChangelogFile="true"/>
......@@ -122,11 +123,11 @@
<include file="generatedData/topictreerelation.xml" relativeToChangelogFile="true"/>
<include file="generatedData/unrelatedduplicates.xml" relativeToChangelogFile="true"/>
<include file="generatedData/visitplanemployeeweek.xml" relativeToChangelogFile="true"/>
<include file="generatedData/visitplanentry.xml" relativeToChangelogFile="true"/>
<!--<include file="generatedData/visitplanentry.xml" relativeToChangelogFile="true"/>-->
<include file="generatedData/visitrecommendation.xml" relativeToChangelogFile="true"/>
<include file="generatedData/weblink.xml" relativeToChangelogFile="true"/>
<include file="generatedData/weblinktag.xml" relativeToChangelogFile="true"/>
<include file="generatedData/weblink_click.xml" relativeToChangelogFile="true"/>
<include file="generatedData/workflowsignal.xml" relativeToChangelogFile="true"/>
<include file="generatedData/workflowstartconfig.xml" relativeToChangelogFile="true"/>
</databaseChangeLog>
\ No newline at end of file
</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="b.ulrich" id="4ce0e969-a543-45ea-b668-f29710b6dc73">
<insert tableName="AB_CURRENCY">
<column name="NUMBERCODE" valueNumeric="978"/>
<column name="ISO4" value="EUR"/>
<column name="NAME" value="Euro"/>
<column name="SIGN" value="€"/>
<column name="ISACTIVE" valueNumeric="1"/>
</insert>
<insert tableName="AB_CURRENCY">
<column name="NUMBERCODE" valueNumeric="840"/>
<column name="ISO4" value="USD"/>
<column name="NAME" value="US-Dollar"/>
<column name="SIGN" value="$"/>
<column name="ISACTIVE" valueNumeric="1"/>
</insert>
<insert tableName="AB_CURRENCY">
<column name="NUMBERCODE" valueNumeric="756"/>
<column name="ISO4" value="CHF"/>
<column name="NAME" value="Swiss Franc"/>
<column name="SIGN" value="Fr"/>
<column name="ISACTIVE" valueNumeric="1"/>
</insert>
<insert tableName="AB_CURRENCY">
<column name="NUMBERCODE" valueNumeric="124"/>
<column name="ISO4" value="CAD"/>
<column name="NAME" value="Canadian Dollar"/>
<column name="SIGN" value="$"/>
<column name="ISACTIVE" valueNumeric="1"/>
</insert>
<insert tableName="AB_CURRENCY">
<column name="NUMBERCODE" valueNumeric="826"/>
<column name="ISO4" value="GPD"/>
<column name="NAME" value="British Pound Sterling"/>
<column name="SIGN" value="£"/>
<column name="ISACTIVE" valueNumeric="1"/>
</insert>
</changeSet>
</databaseChangeLog>
\ No newline at end of file
......@@ -15,6 +15,7 @@
<column name="SALESPROJECTID" value="438537db-0dc6-4aed-b1d1-813011baf88c"/>
<column name="PROJECTTITLE" value="Erstprojekt"/>
<column name="STATUS" value="SALPROJSTATOPEN"/>
<column name="CURRENCYRATE_ID" value=""/>
</insert>
<insert tableName="salesproject">
<column name="PHASE" value="SALPROJPHASELEAD"/>
......@@ -29,6 +30,7 @@
<column name="SALESPROJECTID" value="6d3d16cd-733e-41d1-ab6c-8a6cba63ba4a"/>
<column name="PROJECTTITLE" value="Skyscraper / Pilotprojekt"/>
<column name="STATUS" value="SALPROJSTATOPEN"/>
<column name="CURRENCYRATE_ID" value=""/>
</insert>
<insert tableName="salesproject">
<column name="PHASE" value="SALPROJPHASELEAD"/>
......@@ -41,6 +43,7 @@
<column name="SALESPROJECTID" value="7683f92d-a949-4b76-ba6f-57344d730f40"/>
<column name="PROJECTTITLE" value="Meister Messebau/ Umsetzung"/>
<column name="STATUS" value="SALPROJSTATOPEN"/>
<column name="CURRENCYRATE_ID" value=""/>
</insert>
<insert tableName="salesproject">
<column name="PHASE" value="SALPROJPHASEOFFER"/>
......@@ -55,6 +58,7 @@
<column name="SALESPROJECTID" value="7e2680f6-a438-45aa-956a-787363f85923"/>
<column name="PROJECTTITLE" value="Kronen Pilotprojekt"/>
<column name="STATUS" value="SALPROJSTATOPEN"/>
<column name="CURRENCYRATE_ID" value=""/>
</insert>
<insert tableName="salesproject">
<column name="PHASE" value="SALPROJPHASELEAD"/>
......@@ -83,6 +87,7 @@
<column name="SALESPROJECTID" value="cdaa7f90-6e3d-4199-974b-0847b867a419"/>
<column name="PROJECTTITLE" value="Meister Messebau "/>
<column name="STATUS" value="SALPROJSTATPARTIAL"/>
<column name="CURRENCYRATE_ID" value=""/>
</insert>
<insert tableName="salesproject">
<column name="PHASE" value="SALPROJPHASELEAD"/>
......@@ -97,6 +102,7 @@
<column name="SALESPROJECTID" value="d422ad81-717f-42b0-bd64-fc892744aac7"/>
<column name="PROJECTTITLE" value="Transatlantik Initialprojekt"/>
<column name="STATUS" value="SALPROJSTATOPEN"/>
<column name="CURRENCYRATE_ID" value=""/>
</insert>
<insert tableName="salesproject">
<column name="PHASE" value="SALPROJPHASEPROS"/>
......@@ -110,6 +116,7 @@
<column name="SALESPROJECTID" value="e1d29d7a-744b-412d-8b29-11810a592139"/>
<column name="PROJECTTITLE" value="FSA Projekteinführung"/>
<column name="STATUS" value="SALPROJSTATOPEN"/>
<column name="CURRENCYRATE_ID" value=""/>
</insert>
<insert tableName="salesproject">
<column name="PHASE" value="SALPROJPHASECONTACT"/>
......@@ -123,6 +130,7 @@
<column name="SALESPROJECTID" value="ebb04ae2-d1f9-4ef3-bdfa-e9f562d215ba"/>
<column name="PROJECTTITLE" value="Projekt 123"/>
<column name="STATUS" value="SALPROJSTATOPEN"/>
<column name="CURRENCYRATE_ID" value=""/>
</insert>
<insert tableName="salesproject">
<column name="PHASE" value="SALPROJPHASENEGO"/>
......
......@@ -30,6 +30,7 @@
<include relativeToChangelogFile="true" file="basic/2021.2.0/changelog.xml"/>
<include relativeToChangelogFile="true" file="basic/2021.2.1/changelog.xml"/>
<include relativeToChangelogFile="true" file="basic/2021.2.2/changelog.xml"/>
<include relativeToChangelogFile="true" file="basic/2022.0.0/changelog.xml"/>
<include relativeToChangelogFile="true" file="basic/workflows/changelog.xml" context="workflow"/>
<include relativeToChangelogFile="true" file="basic/_demoData/changelog.xml" context="example"/>
......
......@@ -2305,6 +2305,20 @@
<title>Product price Id</title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>CURRENCYRATE_ID</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="12" />
<size v="36" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
</entityFields>
</entityDb>
<entityDb>
......@@ -3221,6 +3235,20 @@
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>CURRENCYRATE_ID</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="12" />
<size v="36" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
</entityFields>
</entityDb>
<entityDb>
......@@ -3569,6 +3597,20 @@
</customBooleanProperty>
</customProperties>
</entityFieldDb>
<entityFieldDb>
<name>SHOWPRICE</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="5" />
<size v="5" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
</entityFields>
</entityDb>
<entityDb>
......@@ -3913,6 +3955,20 @@
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>CURRENCYRATE_ID</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="12" />
<size v="36" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
</entityFields>
</entityDb>
<entityDb>
......@@ -5069,6 +5125,20 @@
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>CURRENCYRATE_ID</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="12" />
<size v="36" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
</entityFields>
</entityDb>
<entityDb>
......@@ -10398,9 +10468,9 @@
<name>VOLUME</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="4" />
<size v="10" />
<scale v="0" />
<columnType v="2" />
<size v="14" />
<scale v="2" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
......@@ -22464,6 +22534,20 @@
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>CURRENCYRATE_ID</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="12" />
<size v="36" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
</entityFields>
</entityDb>
<entityDb>
......@@ -24799,6 +24883,216 @@
</entityFieldDb>
</entityFields>
</entityDb>
<entityDb>
<name>AB_CURRENCY</name>
<category></category>
<dbName></dbName>
<idColumn>ISO4</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>NUMBERCODE</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>SIGN</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="12" />
<size v="100" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>ISACTIVE</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="5" />
<size v="5" />
<scale v="0" />
<notNull v="true" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>ISO4</name>
<dbName></dbName>
<primaryKey v="true" />
<columnType v="1" />
<size v="3" />
<scale v="0" />
<notNull v="true" />
<isUnique v="true" />
<index v="true" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>NAME</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="12" />
<size v="100" />
<scale v="0" />
<notNull v="true" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
</entityFields>
</entityDb>
<entityDb>
<name>CURRENCYRATE</name>
<category></category>
<dbName></dbName>
<idColumn>CURRENCYRATEID</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>CURRENCYRATEID</name>
<dbName></dbName>
<primaryKey v="true" />
<columnType v="1" />
<size v="36" />
<scale v="0" />
<notNull v="true" />
<isUnique v="true" />
<index v="true" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>TARGETCURRENCYISO</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="1" />
<size v="3" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>CURRENCYRATE</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="8" />
<size v="52" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>DATE_NEW</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>SOURCECURRENCYISO</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="1" />
<size v="3" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>USER_NEW</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="12" />
<size v="50" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>VALID_FROM</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>
</entities>
</entityGroup>
</aliasDefDb>
......
This diff is collapsed.
......@@ -472,6 +472,10 @@
<name>TopicTree</name>
<kind v="10077" />
</entityNode>
<entityNode>
<name>CurrencyRate</name>
<kind v="10077" />
</entityNode>
</childNodes>
</entityNode>
<entityNode>
......
......@@ -669,6 +669,10 @@
<name>AdvertisingId_param</name>
<valueProcess>%aditoprj%/entity/Activity_entity/entityfields/advertisingitems/children/advertisingid_param/valueProcess.js</valueProcess>
</entityParameter>
<entityParameter>
<name>CurrencyAndCurrencyRate_param</name>
<valueProcess>%aditoprj%/entity/Activity_entity/entityfields/advertisingitems/children/currencyandcurrencyrate_param/valueProcess.js</valueProcess>
</entityParameter>
</children>
</entityConsumer>
<entityField>
......
import("system.entities");
import("Util_lib");
import("Currency_lib");
import("system.result");
import("system.vars");
var conf = entities.createConfigForLoadingConsumerRows();
conf.consumer("AdvertisingInformationConsumer");
conf.fields(["CURRENCYRATE_ID"]);
var advertising = entities.getRows(conf);
var res = "";
if(!Utils.isNotNullOrEmptyString(advertising[0]))
{
var currencyAndRate = CurrencyRateUtils.getCurrencyRateById(advertising[0]["CURRENCYRATE_ID"], true);
res = JSON.stringify({
currency: currencyAndRate[1]
, currencyRate: currencyAndRate[0]
})
}
result.string(res);
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