diff --git a/.liquibase/Data_alias/basic/2020.1.2/changelog.xml b/.liquibase/Data_alias/basic/2020.1.2/changelog.xml index f8307f5735c950188735a65f66ca1e5607e2c2f8..1498b71d126d944c059e0aeb1b00ab3d823310ec 100644 --- a/.liquibase/Data_alias/basic/2020.1.2/changelog.xml +++ b/.liquibase/Data_alias/basic/2020.1.2/changelog.xml @@ -3,6 +3,6 @@ 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="AlterDatatypeOfKeyColumnsToChar/changelog.xml" relativeToChangelogFile="true"/> <include file="AddNullableToDateNew.xml" relativeToChangelogFile="true" /> - <include file="insert_workflowCategory_keyword.xml" relativeToChangelogFile="true"/> + <include file="insert_workflowCategory_keyword.xml" relativeToChangelogFile="true"/> <include file="Notification/changelog.xml" relativeToChangelogFile="true" /> </databaseChangeLog> diff --git a/.liquibase/Data_alias/basic/2020.1.3/changelog.xml b/.liquibase/Data_alias/basic/2020.1.3/changelog.xml index 2144ba2aa05757e48e229d77a6615145bdfde80c..93e891be3d7887f00f3e9908d368c3be0b68f713 100644 --- a/.liquibase/Data_alias/basic/2020.1.3/changelog.xml +++ b/.liquibase/Data_alias/basic/2020.1.3/changelog.xml @@ -5,4 +5,6 @@ <include file="DeleteNotificationtypeKeywords.xml" relativeToChangelogFile="true" /> <include file="add_Address_LatLon.xml" relativeToChangelogFile="true"/> <include file="VisitPlanEntry/rename_VisitPlanEntry_ORGANISATION_ID.xml" relativeToChangelogFile="true" /> + <include file="drop_salesorder_unpaid.xml" relativeToChangelogFile="true"/> + <include file="drop_salesorder_versnr.xml" relativeToChangelogFile="true"/> </databaseChangeLog> diff --git a/.liquibase/Data_alias/basic/2020.1.3/drop_salesorder_unpaid.xml b/.liquibase/Data_alias/basic/2020.1.3/drop_salesorder_unpaid.xml new file mode 100644 index 0000000000000000000000000000000000000000..0f1f60e4c2f86f88e434e0a8dd98558a94ad492b --- /dev/null +++ b/.liquibase/Data_alias/basic/2020.1.3/drop_salesorder_unpaid.xml @@ -0,0 +1,8 @@ +<?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="a.voegl" id="6d0c57b1-309f-4d60-a801-2107b3c2480e"> + <dropColumn tableName="SALESORDER"> + <column name="UNPAID"/> + </dropColumn> + </changeSet> +</databaseChangeLog> \ No newline at end of file diff --git a/.liquibase/Data_alias/basic/2020.1.3/drop_salesorder_versnr.xml b/.liquibase/Data_alias/basic/2020.1.3/drop_salesorder_versnr.xml new file mode 100644 index 0000000000000000000000000000000000000000..7e385b320c3641f37f93af95a994d526d73a23e7 --- /dev/null +++ b/.liquibase/Data_alias/basic/2020.1.3/drop_salesorder_versnr.xml @@ -0,0 +1,8 @@ +<?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="a.voegl" id="97c84d76-8c2d-4db7-8151-8ef5d70fd7d4"> + <dropColumn tableName="SALESORDER"> + <column name="VERSNR"/> + </dropColumn> + </changeSet> +</databaseChangeLog> \ No newline at end of file diff --git a/.liquibase/Data_alias/basic/_demoData/generatedData/salesorder.xml b/.liquibase/Data_alias/basic/_demoData/generatedData/salesorder.xml index d7fcac18bbbd52254b740ac4c70efb3142767f54..224f7fea667137bc3b3ecdc8d77cbb80cda80a1f 100644 --- a/.liquibase/Data_alias/basic/_demoData/generatedData/salesorder.xml +++ b/.liquibase/Data_alias/basic/_demoData/generatedData/salesorder.xml @@ -24,7 +24,6 @@ <column name="SALESORDERDATE" valueDate="2019-05-22T02:00:00"/> <column name="SALESORDERID" value="1b9bd530-f45b-4074-872f-b8362cfc5ed0"/> <column name="VAT" valueNumeric="0.00"/> - <column name="VERSNR" valueNumeric="1"/> </insert> <insert tableName="salesorder"> <column name="CANCELLATION" valueNumeric="0"/> @@ -42,7 +41,6 @@ <column name="SALESORDERDATE" valueDate="2017-11-21T01:00:00"/> <column name="SALESORDERID" value="2e661772-951f-47bc-a862-5aa3c5aa2731"/> <column name="VAT" valueNumeric="39.90"/> - <column name="VERSNR" valueNumeric="1"/> </insert> <insert tableName="salesorder"> <column name="CANCELLATION" valueNumeric="1"/> @@ -61,7 +59,6 @@ <column name="SALESORDERDATE" valueDate="2016-06-14T02:00:00"/> <column name="SALESORDERID" value="373f28a5-a812-433b-8196-a6bf8bdd5656"/> <column name="VAT" valueNumeric="119.70"/> - <column name="VERSNR" valueNumeric="1"/> </insert> <insert tableName="salesorder"> <column name="CANCELLATION" valueNumeric="1"/> @@ -80,7 +77,6 @@ <column name="SALESORDERDATE" valueDate="2018-08-12T02:00:00"/> <column name="SALESORDERID" value="3ce30718-ecc6-4543-95c8-1b25e1b6db43"/> <column name="VAT" valueNumeric="79.80"/> - <column name="VERSNR" valueNumeric="1"/> </insert> <insert tableName="salesorder"> <column name="CANCELLATION" valueNumeric="0"/> @@ -102,7 +98,6 @@ <column name="SALESORDERDATE" valueDate="2018-08-12T02:00:00"/> <column name="SALESORDERID" value="41197800-027b-47f5-923a-f1004d09a969"/> <column name="VAT" valueNumeric="79.80"/> - <column name="VERSNR" valueNumeric="1"/> </insert> <insert tableName="salesorder"> <column name="CANCELLATION" valueNumeric="0"/> @@ -120,7 +115,6 @@ <column name="SALESORDERDATE" valueDate="2018-08-23T02:00:00"/> <column name="SALESORDERID" value="4b0e2423-d09d-47fc-b274-5a9fde013b64"/> <column name="VAT" valueNumeric="79.80"/> - <column name="VERSNR" valueNumeric="1"/> </insert> <insert tableName="salesorder"> <column name="CANCELLATION" valueNumeric="0"/> @@ -143,7 +137,6 @@ <column name="SALESORDERDATE" valueDate="2018-09-11T12:00:00"/> <column name="SALESORDERID" value="50c64e0f-6a21-4842-ab41-b27c70d0939a"/> <column name="VAT" valueNumeric="10070.00"/> - <column name="VERSNR" valueNumeric="1"/> </insert> <insert tableName="salesorder"> <column name="CANCELLATION" valueNumeric="0"/> @@ -162,7 +155,6 @@ <column name="SALESORDERDATE" valueDate="2017-05-09T02:00:00"/> <column name="SALESORDERID" value="545ffd81-cfa5-4be6-b62c-df269909dcd4"/> <column name="VAT" valueNumeric="79.80"/> - <column name="VERSNR" valueNumeric="1"/> </insert> <insert tableName="salesorder"> <column name="CANCELLATION" valueNumeric="0"/> @@ -181,7 +173,6 @@ <column name="SALESORDERDATE" valueDate="2018-08-23T02:00:00"/> <column name="SALESORDERID" value="5a34f4a2-13b2-46ec-8f61-939fe27ba484"/> <column name="VAT" valueNumeric="79.80"/> - <column name="VERSNR" valueNumeric="1"/> </insert> <insert tableName="salesorder"> <column name="CANCELLATION" valueNumeric="0"/> @@ -208,7 +199,6 @@ <column name="SALESORDERDATE" valueDate="2017-10-10T12:00:00"/> <column name="SALESORDERID" value="5e082fe5-99d4-43be-aaad-e596f844fa8a"/> <column name="VAT" valueNumeric="10165.00"/> - <column name="VERSNR" valueNumeric="1"/> </insert> <insert tableName="salesorder"> <column name="CANCELLATION" valueNumeric="1"/> @@ -231,7 +221,6 @@ <column name="SALESORDERDATE" valueDate="2019-05-22T02:00:00"/> <column name="SALESORDERID" value="9069d098-7237-4fed-a365-ad2e60bf740f"/> <column name="VAT" valueNumeric="0.00"/> - <column name="VERSNR" valueNumeric="1"/> </insert> <insert tableName="salesorder"> <column name="CANCELLATION" valueNumeric="0"/> @@ -252,7 +241,6 @@ <column name="SALESORDERDATE" valueDate="2019-05-17T02:00:00"/> <column name="SALESORDERID" value="a846d596-b9ce-4a73-a842-e9084ebf612a"/> <column name="VAT" valueNumeric="0.00"/> - <column name="VERSNR" valueNumeric="1"/> </insert> <insert tableName="salesorder"> <column name="CANCELLATION" valueNumeric="0"/> @@ -271,7 +259,6 @@ <column name="SALESORDERDATE" valueDate="2017-11-21T01:00:00"/> <column name="SALESORDERID" value="de09c9c2-7560-4f3f-9284-853ad1341cf9"/> <column name="VAT" valueNumeric="39.90"/> - <column name="VERSNR" valueNumeric="1"/> </insert> <insert tableName="salesorder"> <column name="CANCELLATION" valueNumeric="0"/> @@ -290,7 +277,6 @@ <column name="SALESORDERDATE" valueDate="2017-05-09T02:00:00"/> <column name="SALESORDERID" value="f5cf5ef9-ce09-4885-bcb0-421cd9cfac69"/> <column name="VAT" valueNumeric="79.80"/> - <column name="VERSNR" valueNumeric="1"/> </insert> <insert tableName="salesorder"> <column name="CANCELLATION" valueNumeric="0"/> @@ -312,7 +298,6 @@ <column name="SALESORDERDATE" valueDate="2016-06-14T02:00:00"/> <column name="SALESORDERID" value="fae74315-d7ac-4757-b952-cc71ae83f4b5"/> <column name="VAT" valueNumeric="119.70"/> - <column name="VERSNR" valueNumeric="1"/> </insert> <insert tableName="salesorder"> <column name="CANCELLATION" valueNumeric="0"/> @@ -338,7 +323,6 @@ <column name="SALESORDERDATE" valueDate="2019-05-22T02:00:00"/> <column name="SALESORDERID" value="fc691949-4f61-485c-8e97-8f3d0d3d3962"/> <column name="VAT" valueNumeric="0.00"/> - <column name="VERSNR" valueNumeric="1"/> </insert> <insert tableName="salesorder"> <column name="CANCELLATION" valueNumeric="0"/> @@ -362,7 +346,6 @@ <column name="SALESORDERDATE" valueDate="2019-11-15T12:00:00"/> <column name="SALESORDERID" value="ff049e6e-06ef-4c27-bcce-5b5b244e4054"/> <column name="VAT" valueNumeric="0.00"/> - <column name="VERSNR" valueNumeric="1"/> </insert> </changeSet> </databaseChangeLog> \ No newline at end of file diff --git a/entity/Order_entity/Order_entity.aod b/entity/Order_entity/Order_entity.aod index 7610aac58abe7df79a112280b6807f2f1cb5399b..4afa1212c435facdf91b5bb2fd49649ee520f789 100644 --- a/entity/Order_entity/Order_entity.aod +++ b/entity/Order_entity/Order_entity.aod @@ -1,1257 +1,1144 @@ -<?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.14" xsi:schemaLocation="http://www.adito.de/2018/ao/Model adito://models/xsd/entity/1.3.14"> - <name>Order_entity</name> - <majorModelMode>DISTRIBUTED</majorModelMode> - <documentation>%aditoprj%/entity/Order_entity/documentation.adoc</documentation> - <title>Receipt</title> - <grantDeleteProcess>%aditoprj%/entity/Order_entity/grantDeleteProcess.js</grantDeleteProcess> - <contentTitleProcess>%aditoprj%/entity/Order_entity/contentTitleProcess.js</contentTitleProcess> - <afterUiInit>%aditoprj%/entity/Order_entity/afterUiInit.js</afterUiInit> - <iconId>VAADIN:DOLLAR</iconId> - <titlePlural>Receipts</titlePlural> - <recordContainer>db</recordContainer> - <entityFields> - <entityProvider> - <name>#PROVIDER</name> - <dependencies> - <entityDependency> - <name>95e7ab85-0af9-46ea-a50a-7719833acd2a</name> - <entityName>Object_entity</entityName> - <fieldName>Orders</fieldName> - <isConsumer v="false" /> - </entityDependency> - <entityDependency> - <name>683107cc-2908-4930-8581-d3636f9ec196</name> - <entityName>ObjectProxy_entity</entityName> - <fieldName>Orders</fieldName> - <isConsumer v="false" /> - </entityDependency> - </dependencies> - </entityProvider> - <entityField> - <name>CURRENCY</name> - <title>Currency</title> - <consumer>KeywordCurrencies</consumer> - <valueProcess>%aditoprj%/entity/Order_entity/entityfields/currency/valueProcess.js</valueProcess> - <displayValueProcess>%aditoprj%/entity/Order_entity/entityfields/currency/displayValueProcess.js</displayValueProcess> - </entityField> - <entityField> - <name>SALESORDERCODE</name> - <documentation>%aditoprj%/entity/Order_entity/entityfields/salesordercode/documentation.adoc</documentation> - <title>Receipt number</title> - <state>READONLY</state> - <valueProcess>%aditoprj%/entity/Order_entity/entityfields/salesordercode/valueProcess.js</valueProcess> - <onValidation>%aditoprj%/entity/Order_entity/entityfields/salesordercode/onValidation.js</onValidation> - </entityField> - <entityField> - <name>SALESORDERDATE</name> - <title>Order date</title> - <contentType>DATE</contentType> - <resolution>DAY</resolution> - <outputFormat>dd.MM.yyyy</outputFormat> - <inputFormat>dd.MM.yyyy</inputFormat> - <groupable v="true" /> - <mandatory v="true" /> - <valueProcess>%aditoprj%/entity/Order_entity/entityfields/salesorderdate/valueProcess.js</valueProcess> - </entityField> - <entityField> - <name>SALESORDERID</name> - <title>SALESORDERID (UID)</title> - <valueProcess>%aditoprj%/entity/Order_entity/entityfields/salesorderid/valueProcess.js</valueProcess> - </entityField> - <entityField> - <name>CONTACT_ID</name> - <documentation>%aditoprj%/entity/Order_entity/entityfields/contact_id/documentation.adoc</documentation> - <title>Connection</title> - <consumer>AnyContacts</consumer> - <linkedContextProcess>%aditoprj%/entity/Order_entity/entityfields/contact_id/linkedContextProcess.js</linkedContextProcess> - <mandatory v="true" /> - <valueProcess>%aditoprj%/entity/Order_entity/entityfields/contact_id/valueProcess.js</valueProcess> - <displayValueProcess>%aditoprj%/entity/Order_entity/entityfields/contact_id/displayValueProcess.js</displayValueProcess> - <onValueChangeTypes> - <element>MASK</element> - </onValueChangeTypes> - </entityField> - <entityField> - <name>VAT</name> - <title>Total VAT</title> - <contentType>NUMBER</contentType> - <state>READONLY</state> - <displayValueProcess>%aditoprj%/entity/Order_entity/entityfields/vat/displayValueProcess.js</displayValueProcess> - </entityField> - <entityField> - <name>IMAGE</name> - <contentType>IMAGE</contentType> - <state>READONLY</state> - <valueProcess>%aditoprj%/entity/Order_entity/entityfields/image/valueProcess.js</valueProcess> - </entityField> - <entityField> - <name>HEADER</name> - <title>Header text</title> - <contentType>LONG_TEXT</contentType> - <valueProcess>%aditoprj%/entity/Order_entity/entityfields/header/valueProcess.js</valueProcess> - </entityField> - <entityField> - <name>FOOTER</name> - <title>Footer text</title> - <contentType>LONG_TEXT</contentType> - <valueProcess>%aditoprj%/entity/Order_entity/entityfields/footer/valueProcess.js</valueProcess> - </entityField> - <entityConsumer> - <name>Orderitems</name> - <description></description> - <dependency> - <name>dependency</name> - <entityName>Orderitem_entity</entityName> - <fieldName>Orderitems</fieldName> - </dependency> - <children> - <entityParameter> - <name>OrderId_param</name> - <valueProcess>%aditoprj%/entity/Order_entity/entityfields/orderitems/children/orderid_param/valueProcess.js</valueProcess> - <expose v="true" /> - <mandatory v="true" /> - </entityParameter> - <entityParameter> - <name>Currency_param</name> - <valueProcess>%aditoprj%/entity/Order_entity/entityfields/orderitems/children/currency_param/valueProcess.js</valueProcess> - <expose v="true" /> - </entityParameter> - <entityParameter> - <name>ContactId_param</name> - <valueProcess>%aditoprj%/entity/Order_entity/entityfields/orderitems/children/ContactId_param/valueProcess.js</valueProcess> - <expose v="true" /> - <mandatory v="true" /> - </entityParameter> - <entityParameter> - <name>OrderStatus_param</name> - <valueProcess>%aditoprj%/entity/Order_entity/entityfields/orderitems/children/orderstatus_param/valueProcess.js</valueProcess> - <expose v="true" /> - <mandatory v="true" /> - </entityParameter> - </children> - </entityConsumer> - <entityField> - <name>NET</name> - <title>Total net</title> - <contentType>NUMBER</contentType> - <groupable v="true" /> - <state>READONLY</state> - <valueProcess></valueProcess> - <displayValueProcess>%aditoprj%/entity/Order_entity/entityfields/net/displayValueProcess.js</displayValueProcess> - </entityField> - <entityField> - <name>TotalGross</name> - <documentation>%aditoprj%/entity/Order_entity/entityfields/totalgross/documentation.adoc</documentation> - <title>Total gross</title> - <contentType>NUMBER</contentType> - <state>READONLY</state> - <valueProcess>%aditoprj%/entity/Order_entity/entityfields/totalgross/valueProcess.js</valueProcess> - <displayValueProcess>%aditoprj%/entity/Order_entity/entityfields/totalgross/displayValueProcess.js</displayValueProcess> - </entityField> - <entityField> - <name>ISOLANGUAGE</name> - <title>Language</title> - <consumer>Languages</consumer> - <mandatory v="true" /> - <valueProcess>%aditoprj%/entity/Order_entity/entityfields/isolanguage/valueProcess.js</valueProcess> - <displayValueProcess>%aditoprj%/entity/Order_entity/entityfields/isolanguage/displayValueProcess.js</displayValueProcess> - </entityField> - <entityField> - <name>VERSNR</name> - <documentation>%aditoprj%/entity/Order_entity/entityfields/versnr/documentation.adoc</documentation> - <title>Vers. no.</title> - <state>READONLY</state> - <valueProcess>%aditoprj%/entity/Order_entity/entityfields/versnr/valueProcess.js</valueProcess> - </entityField> - <entityField> - <name>SALESORDER_ID</name> - <documentation>%aditoprj%/entity/Order_entity/entityfields/salesorder_id/documentation.adoc</documentation> - <title>SALESORDER_ID</title> - </entityField> - <entityFieldGroup> - <name>OrderCode_VersNr_fieldgroup</name> - <valueProcess>%aditoprj%/entity/Order_entity/entityfields/ordercode_versnr_fieldgroup/valueProcess.js</valueProcess> - <title>Receipt number</title> - <description>Ordercode + VersNr</description> - <state>READONLY</state> - <fields> - <element>SALESORDERCODE</element> - <element>VERSNR</element> - </fields> - </entityFieldGroup> - <entityParameter> - <name>ContactId_param</name> - <expose v="true" /> - <mandatory v="true" /> - <documentation>%aditoprj%/entity/Order_entity/entityfields/contactid_param/documentation.adoc</documentation> - <description>PARAMETER</description> - </entityParameter> - <entityField> - <name>CONTACT_ORG_ID</name> - <title>Company</title> - <consumer>Organisations</consumer> - <groupable v="true" /> - </entityField> - <entityField> - <name>CONTACT_PERSON_ID</name> - <title>Person</title> - <consumer>Persons</consumer> - <groupable v="true" /> - </entityField> - <entityConsumer> - <name>AnyContacts</name> - <dependency> - <name>dependency</name> - <entityName>AnyContact_entity</entityName> - <fieldName>#PROVIDER</fieldName> - </dependency> - </entityConsumer> - <entityConsumer> - <name>Documents</name> - <selectionMode>MULTI</selectionMode> - <dependency> - <name>dependency</name> - <entityName>Document_entity</entityName> - <fieldName>Documents</fieldName> - </dependency> - <children> - <entityParameter> - <name>AssignmentRowId_param</name> - <valueProcess>%aditoprj%/entity/Order_entity/entityfields/documents/children/assignmentrowid_param/valueProcess.js</valueProcess> - </entityParameter> - <entityParameter> - <name>AssignmentTable_param</name> - <valueProcess>%aditoprj%/entity/Order_entity/entityfields/documents/children/assignmenttable_param/valueProcess.js</valueProcess> - </entityParameter> - </children> - </entityConsumer> - <entityConsumer> - <name>MainDocuments</name> - <stateProcess>%aditoprj%/entity/Order_entity/entityfields/maindocuments/stateProcess.js</stateProcess> - <dependency> - <name>dependency</name> - <entityName>Document_entity</entityName> - <fieldName>MainDocuments</fieldName> - </dependency> - <children> - <entityParameter> - <name>AssignmentName_param</name> - <documentation>%aditoprj%/entity/Order_entity/entityfields/maindocuments/children/assignmentname_param/documentation.adoc</documentation> - </entityParameter> - <entityParameter> - <name>AssignmentRowId_param</name> - <valueProcess>%aditoprj%/entity/Order_entity/entityfields/maindocuments/children/assignmentrowid_param/valueProcess.js</valueProcess> - </entityParameter> - <entityParameter> - <name>AssignmentTable_param</name> - <valueProcess>%aditoprj%/entity/Order_entity/entityfields/maindocuments/children/assignmenttable_param/valueProcess.js</valueProcess> - </entityParameter> - </children> - </entityConsumer> - <entityConsumer> - <name>Salesprojects</name> - <dependency> - <name>dependency</name> - <entityName>Salesproject_entity</entityName> - <fieldName>Salesprojects</fieldName> - </dependency> - <children> - <entityParameter> - <name>ContactId_param</name> - <valueProcess>%aditoprj%/entity/Order_entity/entityfields/salesprojects/children/contactid_param/valueProcess.js</valueProcess> - </entityParameter> - </children> - </entityConsumer> - <entityConsumer> - <name>KeywordCurrencies</name> - <dependency> - <name>dependency</name> - <entityName>KeywordEntry_entity</entityName> - <fieldName>SpecificContainerKeywords</fieldName> - </dependency> - <children> - <entityParameter> - <name>ContainerName_param</name> - <valueProcess>%aditoprj%/entity/Order_entity/entityfields/keywordcurrencies/children/containername_param/valueProcess.js</valueProcess> - <expose v="false" /> - </entityParameter> - </children> - </entityConsumer> - <entityConsumer> - <name>KeywordStates</name> - <dependency> - <name>dependency</name> - <entityName>KeywordEntry_entity</entityName> - <fieldName>SpecificContainerKeywords</fieldName> - </dependency> - <children> - <entityParameter> - <name>ContainerName_param</name> - <valueProcess>%aditoprj%/entity/Order_entity/entityfields/keywordstates/children/containername_param/valueProcess.js</valueProcess> - <expose v="false" /> - </entityParameter> - </children> - </entityConsumer> - <entityParameter> - <name>OrderCurrency_param</name> - <expose v="true" /> - <mandatory v="false" /> - <description>PARAMETER</description> - </entityParameter> - <entityParameter> - <name>OrderLanguage_param</name> - <valueProcess>%aditoprj%/entity/Order_entity/entityfields/orderlanguage_param/valueProcess.js</valueProcess> - <expose v="true" /> - <mandatory v="false" /> - <description>PARAMETER</description> - </entityParameter> - <entityParameter> - <name>OrderHeader_param</name> - <expose v="true" /> - <mandatory v="false" /> - <description>PARAMETER</description> - </entityParameter> - <entityConsumer> - <name>Languages</name> - <dependency> - <name>dependency</name> - <entityName>Language_entity</entityName> - <fieldName>ISO3Name</fieldName> - </dependency> - </entityConsumer> - <entityParameter> - <name>OfferId_param</name> - <expose v="true" /> - <mandatory v="false" /> - <documentation>%aditoprj%/entity/Order_entity/entityfields/offerid_param/documentation.adoc</documentation> - <description>PARAMETER</description> - </entityParameter> - <entityConsumer> - <name>Activities</name> - <dependency> - <name>dependency</name> - <entityName>Activity_entity</entityName> - <fieldName>LinkedObjects</fieldName> - </dependency> - <children> - <entityParameter> - <name>RowId_param</name> - <valueProcess>%aditoprj%/entity/Order_entity/entityfields/activities/children/rowid_param/valueProcess.js</valueProcess> - </entityParameter> - <entityParameter> - <name>ObjectId_param</name> - <valueProcess>%aditoprj%/entity/Order_entity/entityfields/activities/children/objectid_param/valueProcess.js</valueProcess> - </entityParameter> - <entityParameter> - <name>PresetLinks_param</name> - <valueProcess>%aditoprj%/entity/Order_entity/entityfields/activities/children/presetlinks_param/valueProcess.js</valueProcess> - </entityParameter> - </children> - </entityConsumer> - <entityField> - <name>OFFER_ID</name> - <title>Offer</title> - <consumer>Offers</consumer> - <groupable v="true" /> - <linkedContext>Offer</linkedContext> - <state>AUTO</state> - <valueProcess>%aditoprj%/entity/Order_entity/entityfields/offer_id/valueProcess.js</valueProcess> - <displayValueProcess>%aditoprj%/entity/Order_entity/entityfields/offer_id/displayValueProcess.js</displayValueProcess> - </entityField> - <entityConsumer> - <name>Tasks</name> - <stateProcess>%aditoprj%/entity/Order_entity/entityfields/tasks/stateProcess.js</stateProcess> - <dependency> - <name>dependency</name> - <entityName>Task_entity</entityName> - <fieldName>Tasks</fieldName> - </dependency> - <children> - <entityParameter> - <name>RowId_param</name> - <valueProcess>%aditoprj%/entity/Order_entity/entityfields/tasks/children/rowid_param/valueProcess.js</valueProcess> - </entityParameter> - <entityParameter> - <name>ObjectId_param</name> - <valueProcess>%aditoprj%/entity/Order_entity/entityfields/tasks/children/objectid_param/valueProcess.js</valueProcess> - </entityParameter> - <entityParameter> - <name>PresetLinks_param</name> - <valueProcess>%aditoprj%/entity/Order_entity/entityfields/tasks/children/presetlinks_param/valueProcess.js</valueProcess> - </entityParameter> - </children> - </entityConsumer> - <entityConsumer> - <name>Attributes</name> - <onValidation>%aditoprj%/entity/Order_entity/entityfields/attributes/onValidation.js</onValidation> - <dependency> - <name>dependency</name> - <entityName>AttributeRelation_entity</entityName> - <fieldName>AttributeRelations</fieldName> - </dependency> - <children> - <entityParameter> - <name>ObjectRowId_param</name> - <valueProcess>%aditoprj%/entity/Order_entity/entityfields/attributes/children/objectrowid_param/valueProcess.js</valueProcess> - </entityParameter> - <entityParameter> - <name>ObjectType_param</name> - <valueProcess>%aditoprj%/entity/Order_entity/entityfields/attributes/children/objecttype_param/valueProcess.js</valueProcess> - </entityParameter> - </children> - </entityConsumer> - <entityConsumer> - <name>AttributeTree</name> - <stateProcess>%aditoprj%/entity/Order_entity/entityfields/attributetree/stateProcess.js</stateProcess> - <dependency> - <name>dependency</name> - <entityName>AttributeRelation_entity</entityName> - <fieldName>TreeProvider</fieldName> - </dependency> - <children> - <entityParameter> - <name>ObjectType_param</name> - <valueProcess>%aditoprj%/entity/Order_entity/entityfields/attributetree/children/objecttype_param/valueProcess.js</valueProcess> - </entityParameter> - <entityParameter> - <name>ObjectRowId_param</name> - <valueProcess>%aditoprj%/entity/Order_entity/entityfields/attributetree/children/objectrowid_param/valueProcess.js</valueProcess> - </entityParameter> - </children> - </entityConsumer> - <entityConsumer> - <name>LogHistories</name> - <dependency> - <name>dependency</name> - <entityName>LogHistory_entity</entityName> - <fieldName>LogHistoryProvider</fieldName> - </dependency> - <children> - <entityParameter> - <name>tablenames_param</name> - <valueProcess>%aditoprj%/entity/Order_entity/entityfields/loghistories/children/tablenames_param/valueProcess.js</valueProcess> - </entityParameter> - </children> - </entityConsumer> - <entityField> - <name>ORDERTYPE</name> - <documentation>%aditoprj%/entity/Order_entity/entityfields/ordertype/documentation.adoc</documentation> - <title>Order Type</title> - <consumer>KeywordOrderTypes</consumer> - <groupable v="true" /> - <mandatory v="true" /> - <usePermissions v="true" /> - <valueProcess>%aditoprj%/entity/Order_entity/entityfields/ordertype/valueProcess.js</valueProcess> - <displayValueProcess>%aditoprj%/entity/Order_entity/entityfields/ordertype/displayValueProcess.js</displayValueProcess> - </entityField> - <entityField> - <name>ORDERSTATUS</name> - <documentation>%aditoprj%/entity/Order_entity/entityfields/orderstatus/documentation.adoc</documentation> - <title>Sent</title> - <contentType>BOOLEAN</contentType> - <groupable v="true" /> - <dropDownProcess>%aditoprj%/entity/Order_entity/entityfields/orderstatus/dropDownProcess.js</dropDownProcess> - <valueProcess>%aditoprj%/entity/Order_entity/entityfields/orderstatus/valueProcess.js</valueProcess> - </entityField> - <entityField> - <name>PAID</name> - <title>Paid</title> - <contentType>NUMBER</contentType> - <outputFormat>#,##0.00</outputFormat> - <inputFormat>#,##0.00</inputFormat> - <stateProcess>%aditoprj%/entity/Order_entity/entityfields/paid/stateProcess.js</stateProcess> - <displayValueProcess>%aditoprj%/entity/Order_entity/entityfields/paid/displayValueProcess.js</displayValueProcess> - </entityField> - <entityField> - <name>Unpaid</name> - <valueProcess>%aditoprj%/entity/Order_entity/entityfields/unpaid/valueProcess.js</valueProcess> - </entityField> - <entityField> - <name>CANCELLATION</name> - <documentation>%aditoprj%/entity/Order_entity/entityfields/cancellation/documentation.adoc</documentation> - <title>${ORDER_CANCELLED}</title> - <contentType>BOOLEAN</contentType> - <groupable v="true" /> - <dropDownProcess>%aditoprj%/entity/Order_entity/entityfields/cancellation/dropDownProcess.js</dropDownProcess> - <valueProcess>%aditoprj%/entity/Order_entity/entityfields/cancellation/valueProcess.js</valueProcess> - </entityField> - <entityField> - <name>DUNNINGDATE</name> - <documentation>%aditoprj%/entity/Order_entity/entityfields/dunningdate/documentation.adoc</documentation> - <title>Dunning date</title> - <contentType>DATE</contentType> - <resolution>DAY</resolution> - <stateProcess>%aditoprj%/entity/Order_entity/entityfields/dunningdate/stateProcess.js</stateProcess> - </entityField> - <entityField> - <name>DUNNINGLEVEL</name> - <documentation>%aditoprj%/entity/Order_entity/entityfields/dunninglevel/documentation.adoc</documentation> - <title>Dunning level</title> - <consumer>KeywordDunningLevels</consumer> - <stateProcess>%aditoprj%/entity/Order_entity/entityfields/dunninglevel/stateProcess.js</stateProcess> - <displayValueProcess>%aditoprj%/entity/Order_entity/entityfields/dunninglevel/displayValueProcess.js</displayValueProcess> - </entityField> - <entityField> - <name>PAYDATE</name> - <title>Pay date</title> - <contentType>DATE</contentType> - <resolution>DAY</resolution> - <groupable v="true" /> - <stateProcess>%aditoprj%/entity/Order_entity/entityfields/paydate/stateProcess.js</stateProcess> - </entityField> - <entityField> - <name>PAYDUEDATE</name> - <documentation>%aditoprj%/entity/Order_entity/entityfields/payduedate/documentation.adoc</documentation> - <title>Pay due date</title> - <contentType>DATE</contentType> - <resolution>DAY</resolution> - <mandatory v="true" /> - <state>READONLY</state> - <valueProcess>%aditoprj%/entity/Order_entity/entityfields/payduedate/valueProcess.js</valueProcess> - </entityField> - <entityConsumer> - <name>KeywordOrderTypes</name> - <dependency> - <name>dependency</name> - <entityName>KeywordEntry_entity</entityName> - <fieldName>SpecificContainerKeywords</fieldName> - </dependency> - <children> - <entityParameter> - <name>ContainerName_param</name> - <valueProcess>%aditoprj%/entity/Order_entity/entityfields/keywordordertypes/children/containername_param/valueProcess.js</valueProcess> - </entityParameter> - </children> - </entityConsumer> - <entityConsumer> - <name>KeywordDunningLevels</name> - <dependency> - <name>dependency</name> - <entityName>KeywordEntry_entity</entityName> - <fieldName>SpecificContainerKeywords</fieldName> - </dependency> - <children> - <entityParameter> - <name>ContainerName_param</name> - <valueProcess>%aditoprj%/entity/Order_entity/entityfields/keyworddunninglevels/children/containername_param/valueProcess.js</valueProcess> - </entityParameter> - </children> - </entityConsumer> - <entityField> - <name>OBJECT_ROWID</name> - <title>Link</title> - <consumer>Objects</consumer> - <linkedContextProcess>%aditoprj%/entity/Order_entity/entityfields/object_rowid/linkedContextProcess.js</linkedContextProcess> - <mandatory v="true" /> - <mandatoryProcess>%aditoprj%/entity/Order_entity/entityfields/object_rowid/mandatoryProcess.js</mandatoryProcess> - <titleProcess>%aditoprj%/entity/Order_entity/entityfields/object_rowid/titleProcess.js</titleProcess> - <valueProcess>%aditoprj%/entity/Order_entity/entityfields/object_rowid/valueProcess.js</valueProcess> - <displayValueProcess>%aditoprj%/entity/Order_entity/entityfields/object_rowid/displayValueProcess.js</displayValueProcess> - <onValueChangeTypes> - <element>MASK</element> - <element>PROCESS</element> - <element>PROCESS_SETVALUE</element> - </onValueChangeTypes> - </entityField> - <entityField> - <name>OBJECT_TYPE</name> - <title>Connection Type</title> - <consumer>Contexts</consumer> - <mandatoryProcess>%aditoprj%/entity/Order_entity/entityfields/object_type/mandatoryProcess.js</mandatoryProcess> - <state>INVISIBLE</state> - <valueProcess>%aditoprj%/entity/Order_entity/entityfields/object_type/valueProcess.js</valueProcess> - <displayValueProcess>%aditoprj%/entity/Order_entity/entityfields/object_type/displayValueProcess.js</displayValueProcess> - </entityField> - <entityConsumer> - <name>Objects</name> - <dependency> - <name>dependency</name> - <entityName>Object_entity</entityName> - <fieldName>FilteredObjects</fieldName> - </dependency> - <children> - <entityParameter> - <name>ContactId_param</name> - <valueProcess>%aditoprj%/entity/Order_entity/entityfields/objects/children/contactid_param/valueProcess.js</valueProcess> - </entityParameter> - <entityParameter> - <name>ObjectType_param</name> - <valueProcess>%aditoprj%/entity/Order_entity/entityfields/objects/children/objecttype_param/valueProcess.js</valueProcess> - </entityParameter> - </children> - </entityConsumer> - <entityConsumer> - <name>Contexts</name> - <dependency> - <name>dependency</name> - <entityName>Context_entity</entityName> - <fieldName>Exclusive</fieldName> - </dependency> - <children> - <entityParameter> - <name>Blacklist_param</name> - <valueProcess>%aditoprj%/entity/Order_entity/entityfields/contexts/children/blacklist_param/valueProcess.js</valueProcess> - </entityParameter> - <entityParameter> - <name>InvertBlacklist_param</name> - <valueProcess>%aditoprj%/entity/Order_entity/entityfields/contexts/children/invertblacklist_param/valueProcess.js</valueProcess> - </entityParameter> - </children> - </entityConsumer> - <entityParameter> - <name>PossibleConnectionTypes</name> - <valueProcess>%aditoprj%/entity/Order_entity/entityfields/possibleconnectiontypes/valueProcess.js</valueProcess> - <expose v="true" /> - <description>PARAMETER</description> - </entityParameter> - <entityParameter> - <name>ObjectRowId_param</name> - <expose v="true" /> - <documentation>%aditoprj%/entity/Order_entity/entityfields/objectrowid_param/documentation.adoc</documentation> - <description>PARAMETER</description> - </entityParameter> - <entityParameter> - <name>ObjectType_param</name> - <expose v="true" /> - <documentation>%aditoprj%/entity/Order_entity/entityfields/objecttype_param/documentation.adoc</documentation> - <description>PARAMETER</description> - </entityParameter> - <entityField> - <name>PAYMENTTERMS</name> - <documentation>%aditoprj%/entity/Order_entity/entityfields/paymentterms/documentation.adoc</documentation> - <title>Payment term</title> - <consumer>KeywordPaymentTerms</consumer> - <mandatory v="true" /> - <valueProcess>%aditoprj%/entity/Order_entity/entityfields/paymentterms/valueProcess.js</valueProcess> - <displayValueProcess>%aditoprj%/entity/Order_entity/entityfields/paymentterms/displayValueProcess.js</displayValueProcess> - </entityField> - <entityField> - <name>DELIVERYTERMS</name> - <documentation>%aditoprj%/entity/Order_entity/entityfields/deliveryterms/documentation.adoc</documentation> - <title>Delivery specification</title> - <consumer>KeywordDeliveryTerms</consumer> - <mandatory v="true" /> - <valueProcess>%aditoprj%/entity/Order_entity/entityfields/deliveryterms/valueProcess.js</valueProcess> - <displayValueProcess>%aditoprj%/entity/Order_entity/entityfields/deliveryterms/displayValueProcess.js</displayValueProcess> - </entityField> - <entityField> - <name>DELIVERYADDRESS</name> - <documentation>%aditoprj%/entity/Order_entity/entityfields/deliveryaddress/documentation.adoc</documentation> - <title>Delivery address</title> - <contentType>LONG_TEXT</contentType> - <mandatory v="true" /> - <valueProcess>%aditoprj%/entity/Order_entity/entityfields/deliveryaddress/valueProcess.js</valueProcess> - </entityField> - <entityField> - <name>PAYMENTADDRESS</name> - <title>Payment address</title> - <contentType>LONG_TEXT</contentType> - <mandatory v="true" /> - <valueProcess>%aditoprj%/entity/Order_entity/entityfields/paymentaddress/valueProcess.js</valueProcess> - </entityField> - <entityConsumer> - <name>KeywordPaymentTerms</name> - <dependency> - <name>dependency</name> - <entityName>KeywordEntry_entity</entityName> - <fieldName>SpecificContainerKeywords</fieldName> - </dependency> - <children> - <entityParameter> - <name>ContainerName_param</name> - <valueProcess>%aditoprj%/entity/Order_entity/entityfields/keywordpaymentterms/children/containername_param/valueProcess.js</valueProcess> - </entityParameter> - </children> - </entityConsumer> - <entityConsumer> - <name>KeywordDeliveryTerms</name> - <dependency> - <name>dependency</name> - <entityName>KeywordEntry_entity</entityName> - <fieldName>SpecificContainerKeywords</fieldName> - </dependency> - <children> - <entityParameter> - <name>ContainerName_param</name> - <valueProcess>%aditoprj%/entity/Order_entity/entityfields/keyworddeliveryterms/children/containername_param/valueProcess.js</valueProcess> - </entityParameter> - </children> - </entityConsumer> - <entityConsumer> - <name>PossibleAddresses</name> - <documentation>%aditoprj%/entity/Order_entity/entityfields/possibleaddresses/documentation.adoc</documentation> - <dependency> - <name>dependency</name> - <entityName>Address_entity</entityName> - <fieldName>OrganisationAndContactAddresses</fieldName> - </dependency> - <children> - <entityParameter> - <name>ContactId_param</name> - <valueProcess>%aditoprj%/entity/Order_entity/entityfields/possibleaddresses/children/contactid_param/valueProcess.js</valueProcess> - </entityParameter> - </children> - </entityConsumer> - <entityField> - <name>NOTICE</name> - <title>Notice</title> - <contentType>LONG_TEXT</contentType> - </entityField> - <entityField> - <name>DUNNINGTEXT</name> - <documentation>%aditoprj%/entity/Order_entity/entityfields/dunningtext/documentation.adoc</documentation> - <title>Dunning text</title> - <contentType>LONG_TEXT</contentType> - <stateProcess>%aditoprj%/entity/Order_entity/entityfields/dunningtext/stateProcess.js</stateProcess> - <valueProcess>%aditoprj%/entity/Order_entity/entityfields/dunningtext/valueProcess.js</valueProcess> - </entityField> - <entityParameter> - <name>OrderPaymentTerm_param</name> - <expose v="true" /> - <description>PARAMETER</description> - </entityParameter> - <entityParameter> - <name>OrderDeliveryTerm_param</name> - <expose v="true" /> - <description>PARAMETER</description> - </entityParameter> - <entityConsumer> - <name>Offers</name> - <dependency> - <name>dependency</name> - <entityName>Offer_entity</entityName> - <fieldName>ContactOffers</fieldName> - </dependency> - <children> - <entityParameter> - <name>ContactId_param</name> - <valueProcess>%aditoprj%/entity/Order_entity/entityfields/offers/children/contactid_param/valueProcess.js</valueProcess> - </entityParameter> - </children> - </entityConsumer> - <entityConsumer> - <name>DocumentTemplateTexHeader</name> - <dependency> - <name>dependency</name> - <entityName>DocumentTemplate_entity</entityName> - <fieldName>DocumentTemplateProvider</fieldName> - </dependency> - <children> - <entityParameter> - <name>DocumentTemplateType_param</name> - <valueProcess>%aditoprj%/entity/Order_entity/entityfields/documenttemplatetexheader/children/documenttemplatetype_param/valueProcess.js</valueProcess> - </entityParameter> - <entityParameter> - <name>DocumentTemplateTypeClassification_param</name> - <valueProcess>%aditoprj%/entity/Order_entity/entityfields/documenttemplatetexheader/children/documenttemplatetypeclassification_param/valueProcess.js</valueProcess> - </entityParameter> - </children> - </entityConsumer> - <entityConsumer> - <name>DocumentTemplateTexFooter</name> - <dependency> - <name>dependency</name> - <entityName>DocumentTemplate_entity</entityName> - <fieldName>DocumentTemplateProvider</fieldName> - </dependency> - <children> - <entityParameter> - <name>DocumentTemplateType_param</name> - <valueProcess>%aditoprj%/entity/Order_entity/entityfields/documenttemplatetexfooter/children/documenttemplatetype_param/valueProcess.js</valueProcess> - </entityParameter> - <entityParameter> - <name>DocumentTemplateTypeClassification_param</name> - <valueProcess>%aditoprj%/entity/Order_entity/entityfields/documenttemplatetexfooter/children/documenttemplatetypeclassification_param/valueProcess.js</valueProcess> - </entityParameter> - </children> - </entityConsumer> - <entityField> - <name>ChosenTexHeader</name> - <title>Choose Header</title> - <consumer>DocumentTemplateTexHeader</consumer> - </entityField> - <entityField> - <name>ChosenTexFooter</name> - <title>Choose Footer</title> - <consumer>DocumentTemplateTexFooter</consumer> - </entityField> - <entityParameter> - <name>OrderFooter_param</name> - <expose v="true" /> - <description>PARAMETER</description> - </entityParameter> - <entityParameter> - <name>OrderDunningDate_param</name> - <expose v="true" /> - <description>PARAMETER</description> - </entityParameter> - <entityParameter> - <name>OrderDunningLevel_param</name> - <expose v="true" /> - <description>PARAMETER</description> - </entityParameter> - <entityParameter> - <name>OrderType_param</name> - <expose v="true" /> - <description>PARAMETER</description> - </entityParameter> - <entityParameter> - <name>OrderCancellation_param</name> - <expose v="true" /> - <description>PARAMETER</description> - </entityParameter> - <entityField> - <name>ChosenPaymentAddress</name> - <documentation>%aditoprj%/entity/Order_entity/entityfields/chosenpaymentaddress/documentation.adoc</documentation> - <title>Choose payment address</title> - <consumer>PossibleAddresses</consumer> - <valueProcess>%aditoprj%/entity/Order_entity/entityfields/chosenpaymentaddress/valueProcess.js</valueProcess> - <displayValueProcess>%aditoprj%/entity/Order_entity/entityfields/chosenpaymentaddress/displayValueProcess.js</displayValueProcess> - <onValueChange>%aditoprj%/entity/Order_entity/entityfields/chosenpaymentaddress/onValueChange.js</onValueChange> - <onValueChangeTypes> - <element>MASK</element> - <element>PROCESS</element> - <element>PROCESS_SETVALUE</element> - </onValueChangeTypes> - </entityField> - <entityField> - <name>ChosenDeliveryAddress</name> - <documentation>%aditoprj%/entity/Order_entity/entityfields/chosendeliveryaddress/documentation.adoc</documentation> - <title>Choose delivery address</title> - <consumer>PossibleAddresses</consumer> - <valueProcess>%aditoprj%/entity/Order_entity/entityfields/chosendeliveryaddress/valueProcess.js</valueProcess> - <displayValueProcess>%aditoprj%/entity/Order_entity/entityfields/chosendeliveryaddress/displayValueProcess.js</displayValueProcess> - <onValueChange>%aditoprj%/entity/Order_entity/entityfields/chosendeliveryaddress/onValueChange.js</onValueChange> - <onValueChangeTypes> - <element>MASK</element> - <element>PROCESS</element> - <element>PROCESS_SETVALUE</element> - </onValueChangeTypes> - </entityField> - <entityParameter> - <name>OrderCode_param</name> - <expose v="true" /> - <description>PARAMETER</description> - </entityParameter> - <entityParameter> - <name>OrderStatus_param</name> - <expose v="true" /> - <description>PARAMETER</description> - </entityParameter> - <entityParameter> - <name>OrderVersnr_param</name> - <expose v="true" /> - <description>PARAMETER</description> - </entityParameter> - <entityField> - <name>FullOrderCode</name> - <title>Order number</title> - <valueProcess>%aditoprj%/entity/Order_entity/entityfields/fullordercode/valueProcess.js</valueProcess> - </entityField> - <entityParameter> - <name>OrderPaymentAddress_param</name> - <expose v="true" /> - <documentation>%aditoprj%/entity/Order_entity/entityfields/orderpaymentaddress_param/documentation.adoc</documentation> - <description>PARAMETER</description> - </entityParameter> - <entityParameter> - <name>OrderDeliveryAddress_param</name> - <expose v="true" /> - <documentation>%aditoprj%/entity/Order_entity/entityfields/orderdeliveryaddress_param/documentation.adoc</documentation> - <description>PARAMETER</description> - </entityParameter> - <entityActionField> - <name>newOrderVersion</name> - <documentation>%aditoprj%/entity/Order_entity/entityfields/neworderversion/documentation.adoc</documentation> - <title>New receipt version</title> - <onActionProcess>%aditoprj%/entity/Order_entity/entityfields/neworderversion/onActionProcess.js</onActionProcess> - <isObjectAction v="true" /> - <iconId>VAADIN:DOLLAR</iconId> - </entityActionField> - <entityActionField> - <name>newOrder</name> - <documentation>%aditoprj%/entity/Order_entity/entityfields/neworder/documentation.adoc</documentation> - <title>Copy receipt</title> - <onActionProcess>%aditoprj%/entity/Order_entity/entityfields/neworder/onActionProcess.js</onActionProcess> - <iconId>VAADIN:COPY</iconId> - </entityActionField> - <entityActionField> - <name>newActivity</name> - <documentation>%aditoprj%/entity/Order_entity/entityfields/newactivity/documentation.adoc</documentation> - <title>New activity</title> - <onActionProcess>%aditoprj%/entity/Order_entity/entityfields/newactivity/onActionProcess.js</onActionProcess> - <iconId>VAADIN:HOURGLASS_END</iconId> - <tooltip>New activity</tooltip> - <tooltipProcess>%aditoprj%/entity/Order_entity/entityfields/newactivity/tooltipProcess.js</tooltipProcess> - </entityActionField> - <entityActionField> - <name>newTask</name> - <documentation>%aditoprj%/entity/Order_entity/entityfields/newtask/documentation.adoc</documentation> - <title>New task</title> - <onActionProcess>%aditoprj%/entity/Order_entity/entityfields/newtask/onActionProcess.js</onActionProcess> - <iconId>VAADIN:TASKS</iconId> - </entityActionField> - <entityActionField> - <name>TransferDeliveryNote</name> - <documentation>%aditoprj%/entity/Order_entity/entityfields/transferdeliverynote/documentation.adoc</documentation> - <title>Transfer to delivery note</title> - <onActionProcess>%aditoprj%/entity/Order_entity/entityfields/transferdeliverynote/onActionProcess.js</onActionProcess> - <iconId>VAADIN:NOTEBOOK</iconId> - <stateProcess>%aditoprj%/entity/Order_entity/entityfields/transferdeliverynote/stateProcess.js</stateProcess> - </entityActionField> - <entityActionField> - <name>TransferInvoice</name> - <documentation>%aditoprj%/entity/Order_entity/entityfields/transferinvoice/documentation.adoc</documentation> - <title>Transfer to Invoice</title> - <onActionProcess>%aditoprj%/entity/Order_entity/entityfields/transferinvoice/onActionProcess.js</onActionProcess> - <iconId>VAADIN:BOOK_DOLLAR</iconId> - <stateProcess>%aditoprj%/entity/Order_entity/entityfields/transferinvoice/stateProcess.js</stateProcess> - </entityActionField> - <entityActionField> - <name>setSent</name> - <documentation>%aditoprj%/entity/Order_entity/entityfields/setsent/documentation.adoc</documentation> - <title>Set to sent</title> - <onActionProcess>%aditoprj%/entity/Order_entity/entityfields/setsent/onActionProcess.js</onActionProcess> - <iconId>VAADIN:ARROW_BACKWARD</iconId> - <stateProcess>%aditoprj%/entity/Order_entity/entityfields/setsent/stateProcess.js</stateProcess> - </entityActionField> - <entityActionField> - <name>cancel</name> - <documentation>%aditoprj%/entity/Order_entity/entityfields/cancel/documentation.adoc</documentation> - <title>Cancel</title> - <onActionProcess>%aditoprj%/entity/Order_entity/entityfields/cancel/onActionProcess.js</onActionProcess> - <iconId>VAADIN:CLOSE</iconId> - <stateProcess>%aditoprj%/entity/Order_entity/entityfields/cancel/stateProcess.js</stateProcess> - </entityActionField> - <entityActionField> - <name>setDunning</name> - <documentation>%aditoprj%/entity/Order_entity/entityfields/setdunning/documentation.adoc</documentation> - <title>Set dunning</title> - <onActionProcess>%aditoprj%/entity/Order_entity/entityfields/setdunning/onActionProcess.js</onActionProcess> - <iconId>VAADIN:WARNING</iconId> - <stateProcess>%aditoprj%/entity/Order_entity/entityfields/setdunning/stateProcess.js</stateProcess> - </entityActionField> - <entityActionField> - <name>setPaid</name> - <documentation>%aditoprj%/entity/Order_entity/entityfields/setpaid/documentation.adoc</documentation> - <title>Set paid amount</title> - <onActionProcess>%aditoprj%/entity/Order_entity/entityfields/setpaid/onActionProcess.js</onActionProcess> - <iconId>VAADIN:DOLLAR</iconId> - <stateProcess>%aditoprj%/entity/Order_entity/entityfields/setpaid/stateProcess.js</stateProcess> - </entityActionField> - <entityActionField> - <name>printOrder</name> - <documentation>%aditoprj%/entity/Order_entity/entityfields/printorder/documentation.adoc</documentation> - <title>Print order</title> - <onActionProcess>%aditoprj%/entity/Order_entity/entityfields/printorder/onActionProcess.js</onActionProcess> - <iconId>VAADIN:FILE</iconId> - <stateProcess>%aditoprj%/entity/Order_entity/entityfields/printorder/stateProcess.js</stateProcess> - </entityActionField> - <entityActionField> - <name>printReminder</name> - <documentation>%aditoprj%/entity/Order_entity/entityfields/printreminder/documentation.adoc</documentation> - <title>Print reminder</title> - <onActionProcess>%aditoprj%/entity/Order_entity/entityfields/printreminder/onActionProcess.js</onActionProcess> - <iconId>VAADIN:FILE</iconId> - <stateProcess>%aditoprj%/entity/Order_entity/entityfields/printreminder/stateProcess.js</stateProcess> - </entityActionField> - <entityActionField> - <name>openAdminView</name> - <title>Open admin view</title> - <onActionProcess>%aditoprj%/entity/Order_entity/entityfields/openadminview/onActionProcess.js</onActionProcess> - <iconId>VAADIN:CURLY_BRACKETS</iconId> - <stateProcess>%aditoprj%/entity/Order_entity/entityfields/openadminview/stateProcess.js</stateProcess> - </entityActionField> - <entityField> - <name>REMINDER_REPORT_DATA</name> - <valueProcess>%aditoprj%/entity/Order_entity/entityfields/reminder_report_data/valueProcess.js</valueProcess> - </entityField> - <entityField> - <name>ORDER_REPORT_DATA</name> - <valueProcess>%aditoprj%/entity/Order_entity/entityfields/order_report_data/valueProcess.js</valueProcess> - </entityField> - <entityConsumer> - <name>Organisations</name> - <dependency> - <name>dependency</name> - <entityName>Organisation_entity</entityName> - <fieldName>Organisations</fieldName> - </dependency> - </entityConsumer> - <entityConsumer> - <name>Persons</name> - <dependency> - <name>dependency</name> - <entityName>Person_entity</entityName> - <fieldName>Contacts</fieldName> - </dependency> - </entityConsumer> - <entityField> - <name>COUNT</name> - <title>Count</title> - <contentType>NUMBER</contentType> - </entityField> - <entityAggregateField> - <name>COUNT_aggregate</name> - <parentField>COUNT</parentField> - <title>Count</title> - </entityAggregateField> - </entityFields> - <recordContainers> - <dbRecordContainer> - <name>db</name> - <alias>Data_alias</alias> - <maximumDbRows v="0" /> - <fromClauseProcess>%aditoprj%/entity/Order_entity/recordcontainers/db/fromClauseProcess.js</fromClauseProcess> - <conditionProcess>%aditoprj%/entity/Order_entity/recordcontainers/db/conditionProcess.js</conditionProcess> - <orderClauseProcess>%aditoprj%/entity/Order_entity/recordcontainers/db/orderClauseProcess.js</orderClauseProcess> - <onDBInsert>%aditoprj%/entity/Order_entity/recordcontainers/db/onDBInsert.js</onDBInsert> - <onDBUpdate>%aditoprj%/entity/Order_entity/recordcontainers/db/onDBUpdate.js</onDBUpdate> - <onDBDelete>%aditoprj%/entity/Order_entity/recordcontainers/db/onDBDelete.js</onDBDelete> - <linkInformation> - <linkInformation> - <name>43290f18-46fb-4d1f-b653-60f39f1fe3fb</name> - <tableName>SALESORDER</tableName> - <primaryKey>SALESORDERID</primaryKey> - <isUIDTable v="true" /> - <readonly v="false" /> - </linkInformation> - <linkInformation> - <name>3f8c21b4-a81e-4405-8b4f-346ff724b8a5</name> - <tableName>CONTACT</tableName> - <primaryKey>CONTACTID</primaryKey> - <isUIDTable v="false" /> - <readonly v="true" /> - </linkInformation> - <linkInformation> - <name>0131be90-6232-4dda-9036-bbde951eded5</name> - <tableName>PERSON</tableName> - <primaryKey>PERSONID</primaryKey> - <isUIDTable v="false" /> - <readonly v="true" /> - </linkInformation> - <linkInformation> - <name>0efeab02-efaf-4155-9312-0aee1f7f5535</name> - <tableName>ORGANISATION</tableName> - <primaryKey>ORGANISATIONID</primaryKey> - <isUIDTable v="false" /> - <readonly v="true" /> - </linkInformation> - </linkInformation> - <recordFieldMappings> - <dbRecordFieldMapping> - <name>CURRENCY.value</name> - <recordfield>SALESORDER.CURRENCY</recordfield> - <isFilterable v="true" /> - <isLookupFilter v="true" /> - </dbRecordFieldMapping> - <dbRecordFieldMapping> - <name>FOOTER.value</name> - <recordfield>SALESORDER.FOOTER</recordfield> - </dbRecordFieldMapping> - <dbRecordFieldMapping> - <name>HEADER.value</name> - <recordfield>SALESORDER.HEADER</recordfield> - </dbRecordFieldMapping> - <dbRecordFieldMapping> - <name>NET.value</name> - <recordfield>SALESORDER.NET</recordfield> - </dbRecordFieldMapping> - <dbRecordFieldMapping> - <name>SALESORDERCODE.value</name> - <recordfield>SALESORDER.SALESORDERCODE</recordfield> - </dbRecordFieldMapping> - <dbRecordFieldMapping> - <name>SALESORDERDATE.value</name> - <recordfield>SALESORDER.SALESORDERDATE</recordfield> - </dbRecordFieldMapping> - <dbRecordFieldMapping> - <name>SALESORDERID.value</name> - <recordfield>SALESORDER.SALESORDERID</recordfield> - </dbRecordFieldMapping> - <dbRecordFieldMapping> - <name>VAT.value</name> - <recordfield>SALESORDER.VAT</recordfield> - </dbRecordFieldMapping> - <dbRecordFieldMapping> - <name>VERSNR.value</name> - <recordfield>SALESORDER.VERSNR</recordfield> - </dbRecordFieldMapping> - <dbRecordFieldMapping> - <name>CONTACT_ID.value</name> - <recordfield>SALESORDER.CONTACT_ID</recordfield> - </dbRecordFieldMapping> - <dbRecordFieldMapping> - <name>CONTACT_ORG_ID.value</name> - <recordfield>CONTACT.ORGANISATION_ID</recordfield> - <isFilterable v="true" /> - <isLookupFilter v="true" /> - </dbRecordFieldMapping> - <dbRecordFieldMapping> - <name>CONTACT_PERSON_ID.value</name> - <recordfield>CONTACT.PERSON_ID</recordfield> - <isFilterable v="true" /> - <isLookupFilter v="true" /> - </dbRecordFieldMapping> - <dbRecordFieldMapping> - <name>CURRENCY.displayValue</name> - <expression>%aditoprj%/entity/Order_entity/recordcontainers/db/recordfieldmappings/currency.displayvalue/expression.js</expression> - </dbRecordFieldMapping> - <dbRecordFieldMapping> - <name>OFFER_ID.value</name> - <recordfield>SALESORDER.OFFER_ID</recordfield> - <isFilterable v="true" /> - <isLookupFilter v="true" /> - </dbRecordFieldMapping> - <dbRecordFieldMapping> - <name>CONTACT_ORG_ID.displayValue</name> - <recordfield>ORGANISATION.NAME</recordfield> - </dbRecordFieldMapping> - <dbRecordFieldMapping> - <name>CONTACT_PERSON_ID.displayValue</name> - <expression>%aditoprj%/entity/Order_entity/recordcontainers/db/recordfieldmappings/contact_person_id.displayvalue/expression.js</expression> - </dbRecordFieldMapping> - <dbRecordFieldMapping> - <name>CANCELLATION.value</name> - <recordfield>SALESORDER.CANCELLATION</recordfield> - </dbRecordFieldMapping> - <dbRecordFieldMapping> - <name>DUNNINGDATE.value</name> - <recordfield>SALESORDER.DUNNINGDATE</recordfield> - </dbRecordFieldMapping> - <dbRecordFieldMapping> - <name>DUNNINGLEVEL.value</name> - <recordfield>SALESORDER.DUNNINGLEVEL</recordfield> - </dbRecordFieldMapping> - <dbRecordFieldMapping> - <name>ORDERSTATUS.value</name> - <recordfield>SALESORDER.ORDERSTATUS</recordfield> - <isFilterable v="true" /> - </dbRecordFieldMapping> - <dbRecordFieldMapping> - <name>ORDERTYPE.value</name> - <recordfield>SALESORDER.ORDERTYPE</recordfield> - <isFilterable v="true" /> - <isLookupFilter v="true" /> - </dbRecordFieldMapping> - <dbRecordFieldMapping> - <name>PAID.value</name> - <recordfield>SALESORDER.PAID</recordfield> - </dbRecordFieldMapping> - <dbRecordFieldMapping> - <name>PAYDATE.value</name> - <recordfield>SALESORDER.PAYDATE</recordfield> - <isFilterable v="true" /> - <isLookupFilter v="true" /> - </dbRecordFieldMapping> - <dbRecordFieldMapping> - <name>PAYDUEDATE.value</name> - <recordfield>SALESORDER.PAYDUEDATE</recordfield> - </dbRecordFieldMapping> - <dbRecordFieldMapping> - <name>OBJECT_ROWID.value</name> - <recordfield>SALESORDER.OBJECT_ROWID</recordfield> - </dbRecordFieldMapping> - <dbRecordFieldMapping> - <name>OBJECT_ROWID.displayValue</name> - <expression>%aditoprj%/entity/Order_entity/recordcontainers/db/recordfieldmappings/object_rowid.displayvalue/expression.js</expression> - </dbRecordFieldMapping> - <dbRecordFieldMapping> - <name>OFFER_ID.displayValue</name> - <expression>%aditoprj%/entity/Order_entity/recordcontainers/db/recordfieldmappings/offer_id.displayvalue/expression.js</expression> - </dbRecordFieldMapping> - <dbRecordFieldMapping> - <name>OBJECT_TYPE.value</name> - <recordfield>SALESORDER.OBJECT_TYPE</recordfield> - </dbRecordFieldMapping> - <dbRecordFieldMapping> - <name>PAYMENTTERMS.value</name> - <recordfield>SALESORDER.PAYMENTTERMS</recordfield> - <isFilterable v="true" /> - <isLookupFilter v="true" /> - </dbRecordFieldMapping> - <dbRecordFieldMapping> - <name>DELIVERYTERMS.value</name> - <recordfield>SALESORDER.DELIVERYTERMS</recordfield> - <isFilterable v="true" /> - <isLookupFilter v="true" /> - </dbRecordFieldMapping> - <dbRecordFieldMapping> - <name>DELIVERYADDRESS.value</name> - <recordfield>SALESORDER.DELIVERYADDRESS</recordfield> - </dbRecordFieldMapping> - <dbRecordFieldMapping> - <name>PAYMENTADDRESS.value</name> - <recordfield>SALESORDER.PAYMENTADDRESS</recordfield> - </dbRecordFieldMapping> - <dbRecordFieldMapping> - <name>NOTICE.value</name> - <recordfield>SALESORDER.NOTICE</recordfield> - </dbRecordFieldMapping> - <dbRecordFieldMapping> - <name>DUNNINGTEXT.value</name> - <recordfield>SALESORDER.DUNNINGTEXT</recordfield> - </dbRecordFieldMapping> - <dbRecordFieldMapping> - <name>DELIVERYTERMS.displayValue</name> - <expression>%aditoprj%/entity/Order_entity/recordcontainers/db/recordfieldmappings/deliveryterms.displayvalue/expression.js</expression> - </dbRecordFieldMapping> - <dbRecordFieldMapping> - <name>CONTACT_ID.displayValue</name> - <expression>%aditoprj%/entity/Order_entity/recordcontainers/db/recordfieldmappings/contact_id.displayvalue/expression.js</expression> - </dbRecordFieldMapping> - <dbRecordFieldMapping> - <name>ISOLANGUAGE.value</name> - <recordfield>SALESORDER.ISOLANGUAGE</recordfield> - <isFilterable v="true" /> - <isLookupFilter v="false" /> - </dbRecordFieldMapping> - <dbRecordFieldMapping> - <name>ISOLANGUAGE.displayValue</name> - <expression>%aditoprj%/entity/Order_entity/recordcontainers/db/recordfieldmappings/isolanguage.displayvalue/expression.js</expression> - </dbRecordFieldMapping> - <dbRecordFieldMapping> - <name>COUNT.value</name> - <expression>%aditoprj%/entity/Order_entity/recordcontainers/db/recordfieldmappings/count.value/expression.js</expression> - </dbRecordFieldMapping> - <aggregateFieldDbMapping> - <name>COUNT_aggregate.value</name> - <recordfield>SALESORDER.SALESORDERID</recordfield> - <aggregateType>COUNT</aggregateType> - </aggregateFieldDbMapping> - </recordFieldMappings> - </dbRecordContainer> - <indexRecordContainer> - <name>index</name> - <configMode>INDEXGROUP_DEFINITION</configMode> - <indexRecordAlias>Data_alias</indexRecordAlias> - <query>%aditoprj%/entity/Order_entity/recordcontainers/index/query.js</query> - <affectedTables> - <element>SALESORDER</element> - </affectedTables> - <affectedIds>%aditoprj%/entity/Order_entity/recordcontainers/index/affectedIds.js</affectedIds> - <indexFieldMappings> - <indexRecordFieldMapping> - <name>SALESORDERCODE.value</name> - <indexFieldType>STRING</indexFieldType> - </indexRecordFieldMapping> - <indexRecordFieldMapping> - <name>CONTACT_ID.value</name> - <indexFieldType>STRING</indexFieldType> - </indexRecordFieldMapping> - <indexRecordFieldMapping> - <name>CONTACT_ORG_ID.value</name> - <indexFieldType>STRING</indexFieldType> - </indexRecordFieldMapping> - <indexRecordFieldMapping> - <name>CONTACT_ORG_ID.displayValue</name> - <indexFieldType>PROPER_NAME</indexFieldType> - <additionalFieldNameAliases> - <element>name</element> - </additionalFieldNameAliases> - </indexRecordFieldMapping> - </indexFieldMappings> - </indexRecordContainer> - </recordContainers> -</entity> +<?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.14" xsi:schemaLocation="http://www.adito.de/2018/ao/Model adito://models/xsd/entity/1.3.14"> + <name>Order_entity</name> + <majorModelMode>DISTRIBUTED</majorModelMode> + <documentation>%aditoprj%/entity/Order_entity/documentation.adoc</documentation> + <title>Receipt</title> + <grantDeleteProcess>%aditoprj%/entity/Order_entity/grantDeleteProcess.js</grantDeleteProcess> + <contentTitleProcess>%aditoprj%/entity/Order_entity/contentTitleProcess.js</contentTitleProcess> + <afterUiInit>%aditoprj%/entity/Order_entity/afterUiInit.js</afterUiInit> + <iconId>VAADIN:DOLLAR</iconId> + <titlePlural>Receipts</titlePlural> + <recordContainer>db</recordContainer> + <entityFields> + <entityProvider> + <name>#PROVIDER</name> + <dependencies> + <entityDependency> + <name>95e7ab85-0af9-46ea-a50a-7719833acd2a</name> + <entityName>Object_entity</entityName> + <fieldName>Orders</fieldName> + <isConsumer v="false" /> + </entityDependency> + <entityDependency> + <name>683107cc-2908-4930-8581-d3636f9ec196</name> + <entityName>ObjectProxy_entity</entityName> + <fieldName>Orders</fieldName> + <isConsumer v="false" /> + </entityDependency> + </dependencies> + </entityProvider> + <entityField> + <name>CURRENCY</name> + <title>Currency</title> + <consumer>KeywordCurrencies</consumer> + <groupable v="true" /> + <valueProcess>%aditoprj%/entity/Order_entity/entityfields/currency/valueProcess.js</valueProcess> + <displayValueProcess>%aditoprj%/entity/Order_entity/entityfields/currency/displayValueProcess.js</displayValueProcess> + </entityField> + <entityField> + <name>SALESORDERCODE</name> + <documentation>%aditoprj%/entity/Order_entity/entityfields/salesordercode/documentation.adoc</documentation> + <title>Receipt number</title> + <state>READONLY</state> + <valueProcess>%aditoprj%/entity/Order_entity/entityfields/salesordercode/valueProcess.js</valueProcess> + <onValidation>%aditoprj%/entity/Order_entity/entityfields/salesordercode/onValidation.js</onValidation> + </entityField> + <entityField> + <name>SALESORDERDATE</name> + <title>Order date</title> + <contentType>DATE</contentType> + <resolution>DAY</resolution> + <outputFormat>dd.MM.yyyy</outputFormat> + <inputFormat>dd.MM.yyyy</inputFormat> + <groupable v="true" /> + <mandatory v="true" /> + <valueProcess>%aditoprj%/entity/Order_entity/entityfields/salesorderdate/valueProcess.js</valueProcess> + </entityField> + <entityField> + <name>SALESORDERID</name> + <title>SALESORDERID (UID)</title> + <valueProcess>%aditoprj%/entity/Order_entity/entityfields/salesorderid/valueProcess.js</valueProcess> + </entityField> + <entityField> + <name>CONTACT_ID</name> + <documentation>%aditoprj%/entity/Order_entity/entityfields/contact_id/documentation.adoc</documentation> + <title>Connection</title> + <consumer>AnyContacts</consumer> + <linkedContextProcess>%aditoprj%/entity/Order_entity/entityfields/contact_id/linkedContextProcess.js</linkedContextProcess> + <mandatory v="true" /> + <displayValueProcess>%aditoprj%/entity/Order_entity/entityfields/contact_id/displayValueProcess.js</displayValueProcess> + <onValueChangeTypes> + <element>MASK</element> + </onValueChangeTypes> + </entityField> + <entityField> + <name>VAT</name> + <title>Total VAT</title> + <contentType>NUMBER</contentType> + <state>READONLY</state> + <displayValueProcess>%aditoprj%/entity/Order_entity/entityfields/vat/displayValueProcess.js</displayValueProcess> + </entityField> + <entityField> + <name>IMAGE</name> + <contentType>IMAGE</contentType> + <state>READONLY</state> + <valueProcess>%aditoprj%/entity/Order_entity/entityfields/image/valueProcess.js</valueProcess> + </entityField> + <entityField> + <name>HEADER</name> + <title>Header text</title> + <contentType>LONG_TEXT</contentType> + <valueProcess>%aditoprj%/entity/Order_entity/entityfields/header/valueProcess.js</valueProcess> + </entityField> + <entityField> + <name>FOOTER</name> + <title>Footer text</title> + <contentType>LONG_TEXT</contentType> + <valueProcess>%aditoprj%/entity/Order_entity/entityfields/footer/valueProcess.js</valueProcess> + </entityField> + <entityConsumer> + <name>Orderitems</name> + <description></description> + <dependency> + <name>dependency</name> + <entityName>Orderitem_entity</entityName> + <fieldName>Orderitems</fieldName> + </dependency> + <children> + <entityParameter> + <name>OrderId_param</name> + <valueProcess>%aditoprj%/entity/Order_entity/entityfields/orderitems/children/orderid_param/valueProcess.js</valueProcess> + <expose v="true" /> + <mandatory v="true" /> + </entityParameter> + <entityParameter> + <name>Currency_param</name> + <valueProcess>%aditoprj%/entity/Order_entity/entityfields/orderitems/children/currency_param/valueProcess.js</valueProcess> + <expose v="true" /> + </entityParameter> + <entityParameter> + <name>ContactId_param</name> + <valueProcess>%aditoprj%/entity/Order_entity/entityfields/orderitems/children/ContactId_param/valueProcess.js</valueProcess> + <expose v="true" /> + <mandatory v="true" /> + </entityParameter> + <entityParameter> + <name>OrderStatus_param</name> + <valueProcess>%aditoprj%/entity/Order_entity/entityfields/orderitems/children/orderstatus_param/valueProcess.js</valueProcess> + <expose v="true" /> + <mandatory v="true" /> + </entityParameter> + </children> + </entityConsumer> + <entityField> + <name>NET</name> + <title>Total net</title> + <contentType>NUMBER</contentType> + <groupable v="true" /> + <state>READONLY</state> + <valueProcess></valueProcess> + <displayValueProcess>%aditoprj%/entity/Order_entity/entityfields/net/displayValueProcess.js</displayValueProcess> + </entityField> + <entityField> + <name>TotalGross</name> + <documentation>%aditoprj%/entity/Order_entity/entityfields/totalgross/documentation.adoc</documentation> + <title>Total gross</title> + <contentType>NUMBER</contentType> + <state>READONLY</state> + <valueProcess>%aditoprj%/entity/Order_entity/entityfields/totalgross/valueProcess.js</valueProcess> + <displayValueProcess>%aditoprj%/entity/Order_entity/entityfields/totalgross/displayValueProcess.js</displayValueProcess> + </entityField> + <entityField> + <name>ISOLANGUAGE</name> + <title>Language</title> + <consumer>Languages</consumer> + <groupable v="true" /> + <mandatory v="true" /> + <displayValueProcess>%aditoprj%/entity/Order_entity/entityfields/isolanguage/displayValueProcess.js</displayValueProcess> + </entityField> + <entityField> + <name>SALESORDER_ID</name> + <documentation>%aditoprj%/entity/Order_entity/entityfields/salesorder_id/documentation.adoc</documentation> + <title>SALESORDER_ID</title> + </entityField> + <entityParameter> + <name>ContactId_param</name> + <expose v="true" /> + <mandatory v="true" /> + <documentation>%aditoprj%/entity/Order_entity/entityfields/contactid_param/documentation.adoc</documentation> + <description>PARAMETER</description> + </entityParameter> + <entityField> + <name>CONTACT_ORG_ID</name> + <title>Company</title> + <consumer>Organisations</consumer> + <groupable v="true" /> + </entityField> + <entityField> + <name>CONTACT_PERSON_ID</name> + <title>Person</title> + <consumer>Persons</consumer> + <groupable v="true" /> + </entityField> + <entityConsumer> + <name>AnyContacts</name> + <dependency> + <name>dependency</name> + <entityName>AnyContact_entity</entityName> + <fieldName>#PROVIDER</fieldName> + </dependency> + </entityConsumer> + <entityConsumer> + <name>Documents</name> + <selectionMode>MULTI</selectionMode> + <dependency> + <name>dependency</name> + <entityName>Document_entity</entityName> + <fieldName>Documents</fieldName> + </dependency> + <children> + <entityParameter> + <name>AssignmentRowId_param</name> + <valueProcess>%aditoprj%/entity/Order_entity/entityfields/documents/children/assignmentrowid_param/valueProcess.js</valueProcess> + </entityParameter> + <entityParameter> + <name>AssignmentTable_param</name> + <valueProcess>%aditoprj%/entity/Order_entity/entityfields/documents/children/assignmenttable_param/valueProcess.js</valueProcess> + </entityParameter> + </children> + </entityConsumer> + <entityConsumer> + <name>MainDocuments</name> + <stateProcess>%aditoprj%/entity/Order_entity/entityfields/maindocuments/stateProcess.js</stateProcess> + <dependency> + <name>dependency</name> + <entityName>Document_entity</entityName> + <fieldName>MainDocuments</fieldName> + </dependency> + <children> + <entityParameter> + <name>AssignmentName_param</name> + <documentation>%aditoprj%/entity/Order_entity/entityfields/maindocuments/children/assignmentname_param/documentation.adoc</documentation> + </entityParameter> + <entityParameter> + <name>AssignmentRowId_param</name> + <valueProcess>%aditoprj%/entity/Order_entity/entityfields/maindocuments/children/assignmentrowid_param/valueProcess.js</valueProcess> + </entityParameter> + <entityParameter> + <name>AssignmentTable_param</name> + <valueProcess>%aditoprj%/entity/Order_entity/entityfields/maindocuments/children/assignmenttable_param/valueProcess.js</valueProcess> + </entityParameter> + </children> + </entityConsumer> + <entityConsumer> + <name>Salesprojects</name> + <dependency> + <name>dependency</name> + <entityName>Salesproject_entity</entityName> + <fieldName>Salesprojects</fieldName> + </dependency> + <children> + <entityParameter> + <name>ContactId_param</name> + <valueProcess>%aditoprj%/entity/Order_entity/entityfields/salesprojects/children/contactid_param/valueProcess.js</valueProcess> + </entityParameter> + </children> + </entityConsumer> + <entityConsumer> + <name>KeywordCurrencies</name> + <dependency> + <name>dependency</name> + <entityName>KeywordEntry_entity</entityName> + <fieldName>SpecificContainerKeywords</fieldName> + </dependency> + <children> + <entityParameter> + <name>ContainerName_param</name> + <valueProcess>%aditoprj%/entity/Order_entity/entityfields/keywordcurrencies/children/containername_param/valueProcess.js</valueProcess> + <expose v="false" /> + </entityParameter> + </children> + </entityConsumer> + <entityConsumer> + <name>KeywordStates</name> + <dependency> + <name>dependency</name> + <entityName>KeywordEntry_entity</entityName> + <fieldName>SpecificContainerKeywords</fieldName> + </dependency> + <children> + <entityParameter> + <name>ContainerName_param</name> + <valueProcess>%aditoprj%/entity/Order_entity/entityfields/keywordstates/children/containername_param/valueProcess.js</valueProcess> + <expose v="false" /> + </entityParameter> + </children> + </entityConsumer> + <entityConsumer> + <name>Languages</name> + <dependency> + <name>dependency</name> + <entityName>Language_entity</entityName> + <fieldName>ISO3Name</fieldName> + </dependency> + </entityConsumer> + <entityParameter> + <name>OfferId_param</name> + <expose v="true" /> + <mandatory v="false" /> + <documentation>%aditoprj%/entity/Order_entity/entityfields/offerid_param/documentation.adoc</documentation> + <description>PARAMETER</description> + </entityParameter> + <entityConsumer> + <name>Activities</name> + <dependency> + <name>dependency</name> + <entityName>Activity_entity</entityName> + <fieldName>LinkedObjects</fieldName> + </dependency> + <children> + <entityParameter> + <name>RowId_param</name> + <valueProcess>%aditoprj%/entity/Order_entity/entityfields/activities/children/rowid_param/valueProcess.js</valueProcess> + </entityParameter> + <entityParameter> + <name>ObjectId_param</name> + <valueProcess>%aditoprj%/entity/Order_entity/entityfields/activities/children/objectid_param/valueProcess.js</valueProcess> + </entityParameter> + <entityParameter> + <name>PresetLinks_param</name> + <valueProcess>%aditoprj%/entity/Order_entity/entityfields/activities/children/presetlinks_param/valueProcess.js</valueProcess> + </entityParameter> + </children> + </entityConsumer> + <entityField> + <name>OFFER_ID</name> + <title>Offer</title> + <consumer>Offers</consumer> + <groupable v="true" /> + <linkedContext>Offer</linkedContext> + <state>AUTO</state> + <displayValueProcess>%aditoprj%/entity/Order_entity/entityfields/offer_id/displayValueProcess.js</displayValueProcess> + </entityField> + <entityConsumer> + <name>Tasks</name> + <stateProcess>%aditoprj%/entity/Order_entity/entityfields/tasks/stateProcess.js</stateProcess> + <dependency> + <name>dependency</name> + <entityName>Task_entity</entityName> + <fieldName>Tasks</fieldName> + </dependency> + <children> + <entityParameter> + <name>RowId_param</name> + <valueProcess>%aditoprj%/entity/Order_entity/entityfields/tasks/children/rowid_param/valueProcess.js</valueProcess> + </entityParameter> + <entityParameter> + <name>ObjectId_param</name> + <valueProcess>%aditoprj%/entity/Order_entity/entityfields/tasks/children/objectid_param/valueProcess.js</valueProcess> + </entityParameter> + <entityParameter> + <name>PresetLinks_param</name> + <valueProcess>%aditoprj%/entity/Order_entity/entityfields/tasks/children/presetlinks_param/valueProcess.js</valueProcess> + </entityParameter> + </children> + </entityConsumer> + <entityConsumer> + <name>Attributes</name> + <onValidation>%aditoprj%/entity/Order_entity/entityfields/attributes/onValidation.js</onValidation> + <dependency> + <name>dependency</name> + <entityName>AttributeRelation_entity</entityName> + <fieldName>AttributeRelations</fieldName> + </dependency> + <children> + <entityParameter> + <name>ObjectRowId_param</name> + <valueProcess>%aditoprj%/entity/Order_entity/entityfields/attributes/children/objectrowid_param/valueProcess.js</valueProcess> + </entityParameter> + <entityParameter> + <name>ObjectType_param</name> + <valueProcess>%aditoprj%/entity/Order_entity/entityfields/attributes/children/objecttype_param/valueProcess.js</valueProcess> + </entityParameter> + </children> + </entityConsumer> + <entityConsumer> + <name>AttributeTree</name> + <stateProcess>%aditoprj%/entity/Order_entity/entityfields/attributetree/stateProcess.js</stateProcess> + <dependency> + <name>dependency</name> + <entityName>AttributeRelation_entity</entityName> + <fieldName>TreeProvider</fieldName> + </dependency> + <children> + <entityParameter> + <name>ObjectType_param</name> + <valueProcess>%aditoprj%/entity/Order_entity/entityfields/attributetree/children/objecttype_param/valueProcess.js</valueProcess> + </entityParameter> + <entityParameter> + <name>ObjectRowId_param</name> + <valueProcess>%aditoprj%/entity/Order_entity/entityfields/attributetree/children/objectrowid_param/valueProcess.js</valueProcess> + </entityParameter> + </children> + </entityConsumer> + <entityConsumer> + <name>LogHistories</name> + <dependency> + <name>dependency</name> + <entityName>LogHistory_entity</entityName> + <fieldName>LogHistoryProvider</fieldName> + </dependency> + <children> + <entityParameter> + <name>tablenames_param</name> + <valueProcess>%aditoprj%/entity/Order_entity/entityfields/loghistories/children/tablenames_param/valueProcess.js</valueProcess> + </entityParameter> + </children> + </entityConsumer> + <entityField> + <name>ORDERTYPE</name> + <documentation>%aditoprj%/entity/Order_entity/entityfields/ordertype/documentation.adoc</documentation> + <title>Order Type</title> + <consumer>KeywordOrderTypes</consumer> + <groupable v="true" /> + <mandatory v="true" /> + <usePermissions v="true" /> + <valueProcess>%aditoprj%/entity/Order_entity/entityfields/ordertype/valueProcess.js</valueProcess> + <displayValueProcess>%aditoprj%/entity/Order_entity/entityfields/ordertype/displayValueProcess.js</displayValueProcess> + </entityField> + <entityField> + <name>ORDERSTATUS</name> + <documentation>%aditoprj%/entity/Order_entity/entityfields/orderstatus/documentation.adoc</documentation> + <title>Sent</title> + <contentType>BOOLEAN</contentType> + <groupable v="true" /> + <dropDownProcess>%aditoprj%/entity/Order_entity/entityfields/orderstatus/dropDownProcess.js</dropDownProcess> + <valueProcess>%aditoprj%/entity/Order_entity/entityfields/orderstatus/valueProcess.js</valueProcess> + </entityField> + <entityField> + <name>PAID</name> + <title>Paid</title> + <contentType>NUMBER</contentType> + <outputFormat>#,##0.00</outputFormat> + <inputFormat>#,##0.00</inputFormat> + <stateProcess>%aditoprj%/entity/Order_entity/entityfields/paid/stateProcess.js</stateProcess> + <displayValueProcess>%aditoprj%/entity/Order_entity/entityfields/paid/displayValueProcess.js</displayValueProcess> + </entityField> + <entityField> + <name>CANCELLATION</name> + <documentation>%aditoprj%/entity/Order_entity/entityfields/cancellation/documentation.adoc</documentation> + <title>${ORDER_CANCELLED}</title> + <contentType>BOOLEAN</contentType> + <groupable v="true" /> + <dropDownProcess>%aditoprj%/entity/Order_entity/entityfields/cancellation/dropDownProcess.js</dropDownProcess> + <valueProcess>%aditoprj%/entity/Order_entity/entityfields/cancellation/valueProcess.js</valueProcess> + </entityField> + <entityField> + <name>DUNNINGDATE</name> + <documentation>%aditoprj%/entity/Order_entity/entityfields/dunningdate/documentation.adoc</documentation> + <title>Dunning date</title> + <contentType>DATE</contentType> + <resolution>DAY</resolution> + <stateProcess>%aditoprj%/entity/Order_entity/entityfields/dunningdate/stateProcess.js</stateProcess> + <valueProcess>%aditoprj%/entity/Order_entity/entityfields/dunningdate/valueProcess.js</valueProcess> + </entityField> + <entityField> + <name>DUNNINGLEVEL</name> + <documentation>%aditoprj%/entity/Order_entity/entityfields/dunninglevel/documentation.adoc</documentation> + <title>Dunning level</title> + <consumer>KeywordDunningLevels</consumer> + <stateProcess>%aditoprj%/entity/Order_entity/entityfields/dunninglevel/stateProcess.js</stateProcess> + <displayValueProcess>%aditoprj%/entity/Order_entity/entityfields/dunninglevel/displayValueProcess.js</displayValueProcess> + </entityField> + <entityField> + <name>PAYDATE</name> + <title>Pay date</title> + <contentType>DATE</contentType> + <resolution>DAY</resolution> + <groupable v="true" /> + <stateProcess>%aditoprj%/entity/Order_entity/entityfields/paydate/stateProcess.js</stateProcess> + <valueProcess>%aditoprj%/entity/Order_entity/entityfields/paydate/valueProcess.js</valueProcess> + </entityField> + <entityField> + <name>PAYDUEDATE</name> + <documentation>%aditoprj%/entity/Order_entity/entityfields/payduedate/documentation.adoc</documentation> + <title>Pay due date</title> + <contentType>DATE</contentType> + <resolution>DAY</resolution> + <mandatory v="true" /> + <state>READONLY</state> + <valueProcess>%aditoprj%/entity/Order_entity/entityfields/payduedate/valueProcess.js</valueProcess> + </entityField> + <entityConsumer> + <name>KeywordOrderTypes</name> + <dependency> + <name>dependency</name> + <entityName>KeywordEntry_entity</entityName> + <fieldName>SpecificContainerKeywords</fieldName> + </dependency> + <children> + <entityParameter> + <name>ContainerName_param</name> + <valueProcess>%aditoprj%/entity/Order_entity/entityfields/keywordordertypes/children/containername_param/valueProcess.js</valueProcess> + </entityParameter> + </children> + </entityConsumer> + <entityConsumer> + <name>KeywordDunningLevels</name> + <dependency> + <name>dependency</name> + <entityName>KeywordEntry_entity</entityName> + <fieldName>SpecificContainerKeywords</fieldName> + </dependency> + <children> + <entityParameter> + <name>ContainerName_param</name> + <valueProcess>%aditoprj%/entity/Order_entity/entityfields/keyworddunninglevels/children/containername_param/valueProcess.js</valueProcess> + </entityParameter> + </children> + </entityConsumer> + <entityField> + <name>OBJECT_ROWID</name> + <title>Link</title> + <consumer>Objects</consumer> + <linkedContextProcess>%aditoprj%/entity/Order_entity/entityfields/object_rowid/linkedContextProcess.js</linkedContextProcess> + <mandatory v="true" /> + <mandatoryProcess>%aditoprj%/entity/Order_entity/entityfields/object_rowid/mandatoryProcess.js</mandatoryProcess> + <titleProcess>%aditoprj%/entity/Order_entity/entityfields/object_rowid/titleProcess.js</titleProcess> + <displayValueProcess>%aditoprj%/entity/Order_entity/entityfields/object_rowid/displayValueProcess.js</displayValueProcess> + <onValueChangeTypes> + <element>MASK</element> + <element>PROCESS</element> + <element>PROCESS_SETVALUE</element> + </onValueChangeTypes> + </entityField> + <entityField> + <name>OBJECT_TYPE</name> + <title>Connection Type</title> + <consumer>Contexts</consumer> + <mandatoryProcess>%aditoprj%/entity/Order_entity/entityfields/object_type/mandatoryProcess.js</mandatoryProcess> + <state>INVISIBLE</state> + <valueProcess>%aditoprj%/entity/Order_entity/entityfields/object_type/valueProcess.js</valueProcess> + <displayValueProcess>%aditoprj%/entity/Order_entity/entityfields/object_type/displayValueProcess.js</displayValueProcess> + </entityField> + <entityConsumer> + <name>Objects</name> + <dependency> + <name>dependency</name> + <entityName>Object_entity</entityName> + <fieldName>FilteredObjects</fieldName> + </dependency> + <children> + <entityParameter> + <name>ContactId_param</name> + <valueProcess>%aditoprj%/entity/Order_entity/entityfields/objects/children/contactid_param/valueProcess.js</valueProcess> + </entityParameter> + <entityParameter> + <name>ObjectType_param</name> + <valueProcess>%aditoprj%/entity/Order_entity/entityfields/objects/children/objecttype_param/valueProcess.js</valueProcess> + </entityParameter> + </children> + </entityConsumer> + <entityConsumer> + <name>Contexts</name> + <dependency> + <name>dependency</name> + <entityName>Context_entity</entityName> + <fieldName>Exclusive</fieldName> + </dependency> + <children> + <entityParameter> + <name>Blacklist_param</name> + <valueProcess>%aditoprj%/entity/Order_entity/entityfields/contexts/children/blacklist_param/valueProcess.js</valueProcess> + </entityParameter> + <entityParameter> + <name>InvertBlacklist_param</name> + <valueProcess>%aditoprj%/entity/Order_entity/entityfields/contexts/children/invertblacklist_param/valueProcess.js</valueProcess> + </entityParameter> + </children> + </entityConsumer> + <entityParameter> + <name>PossibleConnectionTypes</name> + <valueProcess>%aditoprj%/entity/Order_entity/entityfields/possibleconnectiontypes/valueProcess.js</valueProcess> + <expose v="true" /> + <description>PARAMETER</description> + </entityParameter> + <entityParameter> + <name>ObjectRowId_param</name> + <expose v="true" /> + <documentation>%aditoprj%/entity/Order_entity/entityfields/objectrowid_param/documentation.adoc</documentation> + <description>PARAMETER</description> + </entityParameter> + <entityParameter> + <name>ObjectType_param</name> + <expose v="true" /> + <documentation>%aditoprj%/entity/Order_entity/entityfields/objecttype_param/documentation.adoc</documentation> + <description>PARAMETER</description> + </entityParameter> + <entityField> + <name>PAYMENTTERMS</name> + <documentation>%aditoprj%/entity/Order_entity/entityfields/paymentterms/documentation.adoc</documentation> + <title>Payment term</title> + <consumer>KeywordPaymentTerms</consumer> + <mandatory v="true" /> + <valueProcess>%aditoprj%/entity/Order_entity/entityfields/paymentterms/valueProcess.js</valueProcess> + <displayValueProcess>%aditoprj%/entity/Order_entity/entityfields/paymentterms/displayValueProcess.js</displayValueProcess> + </entityField> + <entityField> + <name>DELIVERYTERMS</name> + <documentation>%aditoprj%/entity/Order_entity/entityfields/deliveryterms/documentation.adoc</documentation> + <title>Delivery specification</title> + <consumer>KeywordDeliveryTerms</consumer> + <mandatory v="true" /> + <valueProcess>%aditoprj%/entity/Order_entity/entityfields/deliveryterms/valueProcess.js</valueProcess> + <displayValueProcess>%aditoprj%/entity/Order_entity/entityfields/deliveryterms/displayValueProcess.js</displayValueProcess> + </entityField> + <entityField> + <name>DELIVERYADDRESS</name> + <documentation>%aditoprj%/entity/Order_entity/entityfields/deliveryaddress/documentation.adoc</documentation> + <title>Delivery address</title> + <contentType>LONG_TEXT</contentType> + <mandatory v="true" /> + </entityField> + <entityField> + <name>PAYMENTADDRESS</name> + <title>Payment address</title> + <contentType>LONG_TEXT</contentType> + <mandatory v="true" /> + </entityField> + <entityConsumer> + <name>KeywordPaymentTerms</name> + <dependency> + <name>dependency</name> + <entityName>KeywordEntry_entity</entityName> + <fieldName>SpecificContainerKeywords</fieldName> + </dependency> + <children> + <entityParameter> + <name>ContainerName_param</name> + <valueProcess>%aditoprj%/entity/Order_entity/entityfields/keywordpaymentterms/children/containername_param/valueProcess.js</valueProcess> + </entityParameter> + </children> + </entityConsumer> + <entityConsumer> + <name>KeywordDeliveryTerms</name> + <dependency> + <name>dependency</name> + <entityName>KeywordEntry_entity</entityName> + <fieldName>SpecificContainerKeywords</fieldName> + </dependency> + <children> + <entityParameter> + <name>ContainerName_param</name> + <valueProcess>%aditoprj%/entity/Order_entity/entityfields/keyworddeliveryterms/children/containername_param/valueProcess.js</valueProcess> + </entityParameter> + </children> + </entityConsumer> + <entityConsumer> + <name>PossibleAddresses</name> + <documentation>%aditoprj%/entity/Order_entity/entityfields/possibleaddresses/documentation.adoc</documentation> + <dependency> + <name>dependency</name> + <entityName>Address_entity</entityName> + <fieldName>OrganisationAndContactAddresses</fieldName> + </dependency> + <children> + <entityParameter> + <name>ContactId_param</name> + <valueProcess>%aditoprj%/entity/Order_entity/entityfields/possibleaddresses/children/contactid_param/valueProcess.js</valueProcess> + </entityParameter> + </children> + </entityConsumer> + <entityField> + <name>NOTICE</name> + <title>Notice</title> + <contentType>LONG_TEXT</contentType> + </entityField> + <entityField> + <name>DUNNINGTEXT</name> + <documentation>%aditoprj%/entity/Order_entity/entityfields/dunningtext/documentation.adoc</documentation> + <title>Dunning text</title> + <contentType>LONG_TEXT</contentType> + <stateProcess>%aditoprj%/entity/Order_entity/entityfields/dunningtext/stateProcess.js</stateProcess> + <valueProcess>%aditoprj%/entity/Order_entity/entityfields/dunningtext/valueProcess.js</valueProcess> + </entityField> + <entityConsumer> + <name>Offers</name> + <dependency> + <name>dependency</name> + <entityName>Offer_entity</entityName> + <fieldName>ContactOffers</fieldName> + </dependency> + <children> + <entityParameter> + <name>ContactId_param</name> + <valueProcess>%aditoprj%/entity/Order_entity/entityfields/offers/children/contactid_param/valueProcess.js</valueProcess> + </entityParameter> + </children> + </entityConsumer> + <entityConsumer> + <name>DocumentTemplateTexHeader</name> + <dependency> + <name>dependency</name> + <entityName>DocumentTemplate_entity</entityName> + <fieldName>DocumentTemplateProvider</fieldName> + </dependency> + <children> + <entityParameter> + <name>DocumentTemplateType_param</name> + <valueProcess>%aditoprj%/entity/Order_entity/entityfields/documenttemplatetexheader/children/documenttemplatetype_param/valueProcess.js</valueProcess> + </entityParameter> + <entityParameter> + <name>DocumentTemplateTypeClassification_param</name> + <valueProcess>%aditoprj%/entity/Order_entity/entityfields/documenttemplatetexheader/children/documenttemplatetypeclassification_param/valueProcess.js</valueProcess> + </entityParameter> + </children> + </entityConsumer> + <entityConsumer> + <name>DocumentTemplateTexFooter</name> + <dependency> + <name>dependency</name> + <entityName>DocumentTemplate_entity</entityName> + <fieldName>DocumentTemplateProvider</fieldName> + </dependency> + <children> + <entityParameter> + <name>DocumentTemplateType_param</name> + <valueProcess>%aditoprj%/entity/Order_entity/entityfields/documenttemplatetexfooter/children/documenttemplatetype_param/valueProcess.js</valueProcess> + </entityParameter> + <entityParameter> + <name>DocumentTemplateTypeClassification_param</name> + <valueProcess>%aditoprj%/entity/Order_entity/entityfields/documenttemplatetexfooter/children/documenttemplatetypeclassification_param/valueProcess.js</valueProcess> + </entityParameter> + </children> + </entityConsumer> + <entityField> + <name>ChosenTexHeader</name> + <title>Choose Header</title> + <consumer>DocumentTemplateTexHeader</consumer> + </entityField> + <entityField> + <name>ChosenTexFooter</name> + <title>Choose Footer</title> + <consumer>DocumentTemplateTexFooter</consumer> + </entityField> + <entityField> + <name>ChosenPaymentAddress</name> + <documentation>%aditoprj%/entity/Order_entity/entityfields/chosenpaymentaddress/documentation.adoc</documentation> + <title>Choose payment address</title> + <consumer>PossibleAddresses</consumer> + <valueProcess>%aditoprj%/entity/Order_entity/entityfields/chosenpaymentaddress/valueProcess.js</valueProcess> + <displayValueProcess>%aditoprj%/entity/Order_entity/entityfields/chosenpaymentaddress/displayValueProcess.js</displayValueProcess> + <onValueChange>%aditoprj%/entity/Order_entity/entityfields/chosenpaymentaddress/onValueChange.js</onValueChange> + <onValueChangeTypes> + <element>MASK</element> + <element>PROCESS</element> + <element>PROCESS_SETVALUE</element> + </onValueChangeTypes> + </entityField> + <entityField> + <name>ChosenDeliveryAddress</name> + <documentation>%aditoprj%/entity/Order_entity/entityfields/chosendeliveryaddress/documentation.adoc</documentation> + <title>Choose delivery address</title> + <consumer>PossibleAddresses</consumer> + <valueProcess>%aditoprj%/entity/Order_entity/entityfields/chosendeliveryaddress/valueProcess.js</valueProcess> + <displayValueProcess>%aditoprj%/entity/Order_entity/entityfields/chosendeliveryaddress/displayValueProcess.js</displayValueProcess> + <onValueChange>%aditoprj%/entity/Order_entity/entityfields/chosendeliveryaddress/onValueChange.js</onValueChange> + <onValueChangeTypes> + <element>MASK</element> + <element>PROCESS</element> + <element>PROCESS_SETVALUE</element> + </onValueChangeTypes> + </entityField> + <entityActionField> + <name>newOrder</name> + <documentation>%aditoprj%/entity/Order_entity/entityfields/neworder/documentation.adoc</documentation> + <title>Copy receipt</title> + <onActionProcess>%aditoprj%/entity/Order_entity/entityfields/neworder/onActionProcess.js</onActionProcess> + <iconId>VAADIN:COPY</iconId> + </entityActionField> + <entityActionField> + <name>newActivity</name> + <documentation>%aditoprj%/entity/Order_entity/entityfields/newactivity/documentation.adoc</documentation> + <title>New activity</title> + <onActionProcess>%aditoprj%/entity/Order_entity/entityfields/newactivity/onActionProcess.js</onActionProcess> + <iconId>VAADIN:HOURGLASS_END</iconId> + <tooltip>New activity</tooltip> + <tooltipProcess>%aditoprj%/entity/Order_entity/entityfields/newactivity/tooltipProcess.js</tooltipProcess> + </entityActionField> + <entityActionField> + <name>newTask</name> + <documentation>%aditoprj%/entity/Order_entity/entityfields/newtask/documentation.adoc</documentation> + <title>New task</title> + <onActionProcess>%aditoprj%/entity/Order_entity/entityfields/newtask/onActionProcess.js</onActionProcess> + <iconId>VAADIN:TASKS</iconId> + </entityActionField> + <entityActionField> + <name>TransferDeliveryNote</name> + <documentation>%aditoprj%/entity/Order_entity/entityfields/transferdeliverynote/documentation.adoc</documentation> + <title>Transfer to delivery note</title> + <onActionProcess>%aditoprj%/entity/Order_entity/entityfields/transferdeliverynote/onActionProcess.js</onActionProcess> + <iconId>VAADIN:NOTEBOOK</iconId> + <stateProcess>%aditoprj%/entity/Order_entity/entityfields/transferdeliverynote/stateProcess.js</stateProcess> + </entityActionField> + <entityActionField> + <name>TransferInvoice</name> + <documentation>%aditoprj%/entity/Order_entity/entityfields/transferinvoice/documentation.adoc</documentation> + <title>Transfer to Invoice</title> + <onActionProcess>%aditoprj%/entity/Order_entity/entityfields/transferinvoice/onActionProcess.js</onActionProcess> + <iconId>VAADIN:BOOK_DOLLAR</iconId> + <stateProcess>%aditoprj%/entity/Order_entity/entityfields/transferinvoice/stateProcess.js</stateProcess> + </entityActionField> + <entityActionField> + <name>setSent</name> + <documentation>%aditoprj%/entity/Order_entity/entityfields/setsent/documentation.adoc</documentation> + <title>Set to sent</title> + <onActionProcess>%aditoprj%/entity/Order_entity/entityfields/setsent/onActionProcess.js</onActionProcess> + <iconId>VAADIN:ARROW_BACKWARD</iconId> + <stateProcess>%aditoprj%/entity/Order_entity/entityfields/setsent/stateProcess.js</stateProcess> + </entityActionField> + <entityActionField> + <name>cancel</name> + <documentation>%aditoprj%/entity/Order_entity/entityfields/cancel/documentation.adoc</documentation> + <title>Cancel</title> + <onActionProcess>%aditoprj%/entity/Order_entity/entityfields/cancel/onActionProcess.js</onActionProcess> + <iconId>VAADIN:CLOSE</iconId> + <stateProcess>%aditoprj%/entity/Order_entity/entityfields/cancel/stateProcess.js</stateProcess> + </entityActionField> + <entityActionField> + <name>setDunning</name> + <documentation>%aditoprj%/entity/Order_entity/entityfields/setdunning/documentation.adoc</documentation> + <title>Set dunning</title> + <onActionProcess>%aditoprj%/entity/Order_entity/entityfields/setdunning/onActionProcess.js</onActionProcess> + <iconId>VAADIN:WARNING</iconId> + <stateProcess>%aditoprj%/entity/Order_entity/entityfields/setdunning/stateProcess.js</stateProcess> + </entityActionField> + <entityActionField> + <name>setPaid</name> + <documentation>%aditoprj%/entity/Order_entity/entityfields/setpaid/documentation.adoc</documentation> + <title>Set paid amount</title> + <onActionProcess>%aditoprj%/entity/Order_entity/entityfields/setpaid/onActionProcess.js</onActionProcess> + <iconId>VAADIN:DOLLAR</iconId> + <stateProcess>%aditoprj%/entity/Order_entity/entityfields/setpaid/stateProcess.js</stateProcess> + </entityActionField> + <entityActionField> + <name>printOrder</name> + <documentation>%aditoprj%/entity/Order_entity/entityfields/printorder/documentation.adoc</documentation> + <title>Print order</title> + <onActionProcess>%aditoprj%/entity/Order_entity/entityfields/printorder/onActionProcess.js</onActionProcess> + <iconId>VAADIN:FILE</iconId> + <stateProcess>%aditoprj%/entity/Order_entity/entityfields/printorder/stateProcess.js</stateProcess> + </entityActionField> + <entityActionField> + <name>printReminder</name> + <documentation>%aditoprj%/entity/Order_entity/entityfields/printreminder/documentation.adoc</documentation> + <title>Print reminder</title> + <onActionProcess>%aditoprj%/entity/Order_entity/entityfields/printreminder/onActionProcess.js</onActionProcess> + <iconId>VAADIN:FILE</iconId> + <stateProcess>%aditoprj%/entity/Order_entity/entityfields/printreminder/stateProcess.js</stateProcess> + </entityActionField> + <entityActionField> + <name>openAdminView</name> + <title>Open admin view</title> + <onActionProcess>%aditoprj%/entity/Order_entity/entityfields/openadminview/onActionProcess.js</onActionProcess> + <iconId>VAADIN:CURLY_BRACKETS</iconId> + <stateProcess>%aditoprj%/entity/Order_entity/entityfields/openadminview/stateProcess.js</stateProcess> + </entityActionField> + <entityField> + <name>REMINDER_REPORT_DATA</name> + <valueProcess>%aditoprj%/entity/Order_entity/entityfields/reminder_report_data/valueProcess.js</valueProcess> + </entityField> + <entityField> + <name>ORDER_REPORT_DATA</name> + <valueProcess>%aditoprj%/entity/Order_entity/entityfields/order_report_data/valueProcess.js</valueProcess> + </entityField> + <entityConsumer> + <name>Organisations</name> + <dependency> + <name>dependency</name> + <entityName>Organisation_entity</entityName> + <fieldName>Organisations</fieldName> + </dependency> + </entityConsumer> + <entityConsumer> + <name>Persons</name> + <dependency> + <name>dependency</name> + <entityName>Person_entity</entityName> + <fieldName>Contacts</fieldName> + </dependency> + </entityConsumer> + <entityParameter> + <name>Copy_param</name> + <expose v="true" /> + <documentation>%aditoprj%/entity/Order_entity/entityfields/copy_param/documentation.adoc</documentation> + </entityParameter> + <entityField> + <name>COUNT</name> + <title>Count</title> + <contentType>NUMBER</contentType> + </entityField> + <entityAggregateField> + <name>COUNT_aggregate</name> + <parentField>COUNT</parentField> + <title>Count</title> + </entityAggregateField> + </entityFields> + <recordContainers> + <dbRecordContainer> + <name>db</name> + <alias>Data_alias</alias> + <maximumDbRows v="0" /> + <fromClauseProcess>%aditoprj%/entity/Order_entity/recordcontainers/db/fromClauseProcess.js</fromClauseProcess> + <conditionProcess>%aditoprj%/entity/Order_entity/recordcontainers/db/conditionProcess.js</conditionProcess> + <orderClauseProcess>%aditoprj%/entity/Order_entity/recordcontainers/db/orderClauseProcess.js</orderClauseProcess> + <onDBInsert>%aditoprj%/entity/Order_entity/recordcontainers/db/onDBInsert.js</onDBInsert> + <onDBUpdate>%aditoprj%/entity/Order_entity/recordcontainers/db/onDBUpdate.js</onDBUpdate> + <onDBDelete>%aditoprj%/entity/Order_entity/recordcontainers/db/onDBDelete.js</onDBDelete> + <linkInformation> + <linkInformation> + <name>43290f18-46fb-4d1f-b653-60f39f1fe3fb</name> + <tableName>SALESORDER</tableName> + <primaryKey>SALESORDERID</primaryKey> + <isUIDTable v="true" /> + <readonly v="false" /> + </linkInformation> + <linkInformation> + <name>3f8c21b4-a81e-4405-8b4f-346ff724b8a5</name> + <tableName>CONTACT</tableName> + <primaryKey>CONTACTID</primaryKey> + <isUIDTable v="false" /> + <readonly v="true" /> + </linkInformation> + <linkInformation> + <name>0131be90-6232-4dda-9036-bbde951eded5</name> + <tableName>PERSON</tableName> + <primaryKey>PERSONID</primaryKey> + <isUIDTable v="false" /> + <readonly v="true" /> + </linkInformation> + <linkInformation> + <name>0efeab02-efaf-4155-9312-0aee1f7f5535</name> + <tableName>ORGANISATION</tableName> + <primaryKey>ORGANISATIONID</primaryKey> + <isUIDTable v="false" /> + <readonly v="true" /> + </linkInformation> + </linkInformation> + <recordFieldMappings> + <dbRecordFieldMapping> + <name>CURRENCY.value</name> + <recordfield>SALESORDER.CURRENCY</recordfield> + <isFilterable v="true" /> + <isLookupFilter v="true" /> + </dbRecordFieldMapping> + <dbRecordFieldMapping> + <name>FOOTER.value</name> + <recordfield>SALESORDER.FOOTER</recordfield> + </dbRecordFieldMapping> + <dbRecordFieldMapping> + <name>HEADER.value</name> + <recordfield>SALESORDER.HEADER</recordfield> + </dbRecordFieldMapping> + <dbRecordFieldMapping> + <name>NET.value</name> + <recordfield>SALESORDER.NET</recordfield> + </dbRecordFieldMapping> + <dbRecordFieldMapping> + <name>SALESORDERCODE.value</name> + <recordfield>SALESORDER.SALESORDERCODE</recordfield> + </dbRecordFieldMapping> + <dbRecordFieldMapping> + <name>SALESORDERDATE.value</name> + <recordfield>SALESORDER.SALESORDERDATE</recordfield> + </dbRecordFieldMapping> + <dbRecordFieldMapping> + <name>SALESORDERID.value</name> + <recordfield>SALESORDER.SALESORDERID</recordfield> + </dbRecordFieldMapping> + <dbRecordFieldMapping> + <name>VAT.value</name> + <recordfield>SALESORDER.VAT</recordfield> + </dbRecordFieldMapping> + <dbRecordFieldMapping> + <name>CONTACT_ID.value</name> + <recordfield>SALESORDER.CONTACT_ID</recordfield> + </dbRecordFieldMapping> + <dbRecordFieldMapping> + <name>CONTACT_ORG_ID.value</name> + <recordfield>CONTACT.ORGANISATION_ID</recordfield> + <isFilterable v="true" /> + <isLookupFilter v="true" /> + </dbRecordFieldMapping> + <dbRecordFieldMapping> + <name>CONTACT_PERSON_ID.value</name> + <recordfield>CONTACT.PERSON_ID</recordfield> + <isFilterable v="true" /> + <isLookupFilter v="true" /> + </dbRecordFieldMapping> + <dbRecordFieldMapping> + <name>CURRENCY.displayValue</name> + <expression>%aditoprj%/entity/Order_entity/recordcontainers/db/recordfieldmappings/currency.displayvalue/expression.js</expression> + </dbRecordFieldMapping> + <dbRecordFieldMapping> + <name>OFFER_ID.value</name> + <recordfield>SALESORDER.OFFER_ID</recordfield> + <isFilterable v="true" /> + <isLookupFilter v="true" /> + </dbRecordFieldMapping> + <dbRecordFieldMapping> + <name>CONTACT_ORG_ID.displayValue</name> + <recordfield>ORGANISATION.NAME</recordfield> + </dbRecordFieldMapping> + <dbRecordFieldMapping> + <name>CONTACT_PERSON_ID.displayValue</name> + <expression>%aditoprj%/entity/Order_entity/recordcontainers/db/recordfieldmappings/contact_person_id.displayvalue/expression.js</expression> + </dbRecordFieldMapping> + <dbRecordFieldMapping> + <name>CANCELLATION.value</name> + <recordfield>SALESORDER.CANCELLATION</recordfield> + </dbRecordFieldMapping> + <dbRecordFieldMapping> + <name>DUNNINGDATE.value</name> + <recordfield>SALESORDER.DUNNINGDATE</recordfield> + </dbRecordFieldMapping> + <dbRecordFieldMapping> + <name>DUNNINGLEVEL.value</name> + <recordfield>SALESORDER.DUNNINGLEVEL</recordfield> + </dbRecordFieldMapping> + <dbRecordFieldMapping> + <name>ORDERSTATUS.value</name> + <recordfield>SALESORDER.ORDERSTATUS</recordfield> + <isFilterable v="true" /> + </dbRecordFieldMapping> + <dbRecordFieldMapping> + <name>ORDERTYPE.value</name> + <recordfield>SALESORDER.ORDERTYPE</recordfield> + <isFilterable v="true" /> + <isLookupFilter v="true" /> + </dbRecordFieldMapping> + <dbRecordFieldMapping> + <name>PAID.value</name> + <recordfield>SALESORDER.PAID</recordfield> + </dbRecordFieldMapping> + <dbRecordFieldMapping> + <name>PAYDATE.value</name> + <recordfield>SALESORDER.PAYDATE</recordfield> + <isFilterable v="true" /> + <isLookupFilter v="true" /> + </dbRecordFieldMapping> + <dbRecordFieldMapping> + <name>PAYDUEDATE.value</name> + <recordfield>SALESORDER.PAYDUEDATE</recordfield> + </dbRecordFieldMapping> + <dbRecordFieldMapping> + <name>OBJECT_ROWID.value</name> + <recordfield>SALESORDER.OBJECT_ROWID</recordfield> + </dbRecordFieldMapping> + <dbRecordFieldMapping> + <name>OBJECT_ROWID.displayValue</name> + <expression>%aditoprj%/entity/Order_entity/recordcontainers/db/recordfieldmappings/object_rowid.displayvalue/expression.js</expression> + </dbRecordFieldMapping> + <dbRecordFieldMapping> + <name>OFFER_ID.displayValue</name> + <expression>%aditoprj%/entity/Order_entity/recordcontainers/db/recordfieldmappings/offer_id.displayvalue/expression.js</expression> + </dbRecordFieldMapping> + <dbRecordFieldMapping> + <name>OBJECT_TYPE.value</name> + <recordfield>SALESORDER.OBJECT_TYPE</recordfield> + </dbRecordFieldMapping> + <dbRecordFieldMapping> + <name>PAYMENTTERMS.value</name> + <recordfield>SALESORDER.PAYMENTTERMS</recordfield> + <isFilterable v="true" /> + <isLookupFilter v="true" /> + </dbRecordFieldMapping> + <dbRecordFieldMapping> + <name>DELIVERYTERMS.value</name> + <recordfield>SALESORDER.DELIVERYTERMS</recordfield> + <isFilterable v="true" /> + <isLookupFilter v="true" /> + </dbRecordFieldMapping> + <dbRecordFieldMapping> + <name>DELIVERYADDRESS.value</name> + <recordfield>SALESORDER.DELIVERYADDRESS</recordfield> + </dbRecordFieldMapping> + <dbRecordFieldMapping> + <name>PAYMENTADDRESS.value</name> + <recordfield>SALESORDER.PAYMENTADDRESS</recordfield> + </dbRecordFieldMapping> + <dbRecordFieldMapping> + <name>NOTICE.value</name> + <recordfield>SALESORDER.NOTICE</recordfield> + </dbRecordFieldMapping> + <dbRecordFieldMapping> + <name>DUNNINGTEXT.value</name> + <recordfield>SALESORDER.DUNNINGTEXT</recordfield> + </dbRecordFieldMapping> + <dbRecordFieldMapping> + <name>DELIVERYTERMS.displayValue</name> + <expression>%aditoprj%/entity/Order_entity/recordcontainers/db/recordfieldmappings/deliveryterms.displayvalue/expression.js</expression> + </dbRecordFieldMapping> + <dbRecordFieldMapping> + <name>CONTACT_ID.displayValue</name> + <expression>%aditoprj%/entity/Order_entity/recordcontainers/db/recordfieldmappings/contact_id.displayvalue/expression.js</expression> + </dbRecordFieldMapping> + <dbRecordFieldMapping> + <name>ISOLANGUAGE.value</name> + <recordfield>SALESORDER.ISOLANGUAGE</recordfield> + <isFilterable v="true" /> + <isLookupFilter v="false" /> + </dbRecordFieldMapping> + <dbRecordFieldMapping> + <name>ISOLANGUAGE.displayValue</name> + <expression>%aditoprj%/entity/Order_entity/recordcontainers/db/recordfieldmappings/isolanguage.displayvalue/expression.js</expression> + </dbRecordFieldMapping> + <dbRecordFieldMapping> + <name>ORDERTYPE.displayValue</name> + <expression>%aditoprj%/entity/Order_entity/recordcontainers/db/recordfieldmappings/ordertype.displayvalue/expression.js</expression> + </dbRecordFieldMapping> + <dbRecordFieldMapping> + <name>COUNT.value</name> + <expression>%aditoprj%/entity/Order_entity/recordcontainers/db/recordfieldmappings/count.value/expression.js</expression> + </dbRecordFieldMapping> + <aggregateFieldDbMapping> + <name>COUNT_aggregate.value</name> + <recordfield>SALESORDER.SALESORDERID</recordfield> + <aggregateType>COUNT</aggregateType> + </aggregateFieldDbMapping> + </recordFieldMappings> + </dbRecordContainer> + <indexRecordContainer> + <name>index</name> + <configMode>INDEXGROUP_DEFINITION</configMode> + <indexRecordAlias>Data_alias</indexRecordAlias> + <query>%aditoprj%/entity/Order_entity/recordcontainers/index/query.js</query> + <affectedTables> + <element>SALESORDER</element> + </affectedTables> + <affectedIds>%aditoprj%/entity/Order_entity/recordcontainers/index/affectedIds.js</affectedIds> + <indexFieldMappings> + <indexRecordFieldMapping> + <name>SALESORDERCODE.value</name> + <indexFieldType>STRING</indexFieldType> + </indexRecordFieldMapping> + <indexRecordFieldMapping> + <name>CONTACT_ID.value</name> + <indexFieldType>STRING</indexFieldType> + </indexRecordFieldMapping> + <indexRecordFieldMapping> + <name>CONTACT_ORG_ID.value</name> + <indexFieldType>STRING</indexFieldType> + </indexRecordFieldMapping> + <indexRecordFieldMapping> + <name>CONTACT_ORG_ID.displayValue</name> + <indexFieldType>PROPER_NAME</indexFieldType> + <additionalFieldNameAliases> + <element>name</element> + </additionalFieldNameAliases> + </indexRecordFieldMapping> + </indexFieldMappings> + </indexRecordContainer> + </recordContainers> +</entity> diff --git a/entity/Order_entity/afterUiInit.js b/entity/Order_entity/afterUiInit.js index e30b0b283b229b405cc9ac5bcedcecbfd38128d9..fb24b7ec60ecd148bd0781d70563249786539bc0 100644 --- a/entity/Order_entity/afterUiInit.js +++ b/entity/Order_entity/afterUiInit.js @@ -6,4 +6,8 @@ import("Attribute_lib"); if (vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) { AttributeRelationUtils.presetMandatoryAttributes(ContextUtils.getCurrentContextId(), "Attributes"); + + if(vars.get("$param.Copy_param")) + neon.setFieldValues(JSON.parse(vars.get("$param.Copy_param"))); } + diff --git a/entity/Order_entity/contentTitleProcess.js b/entity/Order_entity/contentTitleProcess.js index 68e68c1f458568bb982e4e4ca205ede596738785..efca7174f4eba418870382ab3a958d1428e7d247 100644 --- a/entity/Order_entity/contentTitleProcess.js +++ b/entity/Order_entity/contentTitleProcess.js @@ -1,5 +1,7 @@ +import("KeywordRegistry_basic"); +import("Keyword_lib"); import("system.translate"); import("system.vars"); import("system.result"); -result.string(vars.get("$field.OrderCode_VersNr_fieldgroup")); +result.string(KeywordUtils.getViewValue($KeywordRegistry.orderType(), vars.get("$field.ORDERTYPE")) +" - "+ vars.get("$field.SALESORDERCODE")); diff --git a/entity/Order_entity/entityfields/cancellation/valueProcess.js b/entity/Order_entity/entityfields/cancellation/valueProcess.js index 396d93a9c1ca3a7ed699ff8502147ec1159efaaa..2baa7fdbc7834cef70e01813ec5daf6fb13ca5f4 100644 --- a/entity/Order_entity/entityfields/cancellation/valueProcess.js +++ b/entity/Order_entity/entityfields/cancellation/valueProcess.js @@ -3,14 +3,6 @@ import("system.vars"); import("system.result"); -if (vars.get("$this.value") == null) { - -if (vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW && vars.get("$this.value") == null){ - if (vars.exists("$param.OrderCancellation_param") && vars.get("$param.OrderCancellation_param")) - { - result.string(vars.get("$param.OrderCancellation_param")); - } - else + +if (vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW && vars.get("$this.value") == null) result.string("0"); -} -} \ No newline at end of file diff --git a/entity/Order_entity/entityfields/contact_id/valueProcess.js b/entity/Order_entity/entityfields/contact_id/valueProcess.js deleted file mode 100644 index 1127220726ee436e1f878c4467fa29d976d6af80..0000000000000000000000000000000000000000 --- a/entity/Order_entity/entityfields/contact_id/valueProcess.js +++ /dev/null @@ -1,7 +0,0 @@ -import("system.result"); -import("system.vars"); - -if (vars.exists("$param.ContactId_param")) -{ - result.string(vars.get("$param.ContactId_param")); -} \ No newline at end of file diff --git a/entity/Order_entity/entityfields/copy_param/documentation.adoc b/entity/Order_entity/entityfields/copy_param/documentation.adoc new file mode 100644 index 0000000000000000000000000000000000000000..5ec36081ee1fbd4fee417e0ac3cce5a2ba999624 --- /dev/null +++ b/entity/Order_entity/entityfields/copy_param/documentation.adoc @@ -0,0 +1,2 @@ +This Param is filled after the action "new Order" is activated. It fills close to all fields with values from the order before. +Therefor it uses a stringified JSON-Object, look up "OrderUtils.copyOrder()" for more details \ No newline at end of file diff --git a/entity/Order_entity/entityfields/currency/valueProcess.js b/entity/Order_entity/entityfields/currency/valueProcess.js index 428b8d7716316722c89d40e18f3eb0593361b745..317b5ce1ed9b68979dbf953ee5b7abe78329d317 100644 --- a/entity/Order_entity/entityfields/currency/valueProcess.js +++ b/entity/Order_entity/entityfields/currency/valueProcess.js @@ -3,11 +3,5 @@ import("system.result"); import("system.vars"); import("KeywordRegistry_basic"); -if (vars.exists("$param.OrderCurrency_param") && vars.get("$param.OrderCurrency_param")) -{ - result.string(vars.get("$param.OrderCurrency_param")); -} -else if (vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW && !vars.get("$this.value")) -{ +if (vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW && !vars.get("$this.value")) result.string($KeywordRegistry.currency$eur()); -} diff --git a/entity/Order_entity/entityfields/deliveryaddress/valueProcess.js b/entity/Order_entity/entityfields/deliveryaddress/valueProcess.js deleted file mode 100644 index 10da985c56a171302f7837c593e9e4cf7f21b80a..0000000000000000000000000000000000000000 --- a/entity/Order_entity/entityfields/deliveryaddress/valueProcess.js +++ /dev/null @@ -1,10 +0,0 @@ -import("system.neon"); -import("system.result"); -import("system.vars"); - -if (((vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW || vars.get("$sys.recordstate") == neon.OPERATINGSTATE_EDIT) && vars.get("$this.value") == null)){ -if (vars.get("$param.OrderDeliveryAddress_param")) -{ - result.string(vars.get("$param.OrderDeliveryAddress_param")); -} -} \ No newline at end of file diff --git a/entity/Order_entity/entityfields/deliveryterms/valueProcess.js b/entity/Order_entity/entityfields/deliveryterms/valueProcess.js index 99fd7d0b2246eec03bd23438043c005ae5bc16c7..8e6fb1be5bc999ff98be26570bbd8ff5d5233ff1 100644 --- a/entity/Order_entity/entityfields/deliveryterms/valueProcess.js +++ b/entity/Order_entity/entityfields/deliveryterms/valueProcess.js @@ -9,14 +9,10 @@ import("Contact_lib"); -if (vars.get("$param.OrderDeliveryTerm_param")) -{ - result.string(vars.get("$param.OrderDeliveryTerm_param")); -} -else if (vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW && vars.get("$this.value") == null) +if (vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW && vars.get("$this.value") == null) { var presetValue = ""; - var contactIds = ContactUtils.getPersOrgIds(vars.getString("$field.CONTACT_ID")) + var contactIds = ContactUtils.getPersOrgIds(vars.getString("$field.CONTACT_ID")); if (contactIds.length >= 3 && contactIds[2]) { var orgContactId = ContactUtils.getOrgContactId(contactIds[2]); diff --git a/entity/Order_entity/entityfields/dunningdate/valueProcess.js b/entity/Order_entity/entityfields/dunningdate/valueProcess.js new file mode 100644 index 0000000000000000000000000000000000000000..d5ae1be32b21e27a07049d1388af7d1feab5f678 --- /dev/null +++ b/entity/Order_entity/entityfields/dunningdate/valueProcess.js @@ -0,0 +1,7 @@ +import("system.logging"); +import("system.neon"); +import("system.vars"); +import("system.result"); + +if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_EDIT && vars.get("$this.value") == "") + result.string(vars.get("$sys.date")); \ No newline at end of file diff --git a/entity/Order_entity/entityfields/dunningtext/valueProcess.js b/entity/Order_entity/entityfields/dunningtext/valueProcess.js index 6ceea69e5f317f4fc7552b6dfc10011b0510adc7..4751e50c64571d78c42b21c5afe4a1e19f179834 100644 --- a/entity/Order_entity/entityfields/dunningtext/valueProcess.js +++ b/entity/Order_entity/entityfields/dunningtext/valueProcess.js @@ -4,12 +4,5 @@ import("system.result"); import("system.neon"); import("Date_lib"); - -if (vars.get("$this.value") == null){ - -if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW && !vars.get("$this.value")|| neon.OPERATINGSTATE_NEW ){ - +if((vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW || neon.OPERATINGSTATE_NEW) && vars.get("$this.value") == null) result.string(translate.text("Please pay the outstanding amount,this is you first/second reminder.")) -} - -} \ No newline at end of file diff --git a/entity/Order_entity/entityfields/footer/valueProcess.js b/entity/Order_entity/entityfields/footer/valueProcess.js index 7eebbf85ccc8c260b08ab22ce6ac784275920a03..2351de155efc20f214326b6f0462709076c21edc 100644 --- a/entity/Order_entity/entityfields/footer/valueProcess.js +++ b/entity/Order_entity/entityfields/footer/valueProcess.js @@ -7,12 +7,7 @@ import("system.util"); if (vars.get("$this.value") == null) { - if (vars.exists("$param.OrderFooter_param")) - { - result.string(vars.get("$param.OrderFooter_param")); - } - - else if(vars.get("$this.value")) + if(vars.get("$this.value")) result.string(vars.get("$this.value")); else if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) @@ -21,9 +16,9 @@ if (vars.get("$this.value") == null) if (vars.get("$field.ChosenTexFooter") != "") { var binaryId = newSelect("ID", SqlUtils.getBinariesAlias()) - .from("ASYS_BINARIES") - .whereIfSet("ASYS_BINARIES.ROW_ID", "$field.ChosenTexFooter") - .cell(true); + .from("ASYS_BINARIES") + .whereIfSet("ASYS_BINARIES.ROW_ID", "$field.ChosenTexFooter") + .cell(true); if (binaryId) result.string(util.decodeBase64String(db.getBinaryContent(binaryId, SqlUtils.getBinariesAlias()))); diff --git a/entity/Order_entity/entityfields/fullordercode/valueProcess.js b/entity/Order_entity/entityfields/fullordercode/valueProcess.js deleted file mode 100644 index 5a188eb0a4498a62bf5f10cb2991eb148579ea1f..0000000000000000000000000000000000000000 --- a/entity/Order_entity/entityfields/fullordercode/valueProcess.js +++ /dev/null @@ -1,9 +0,0 @@ -import("system.translate"); -import("system.result"); -import("system.vars"); - -//a fieldGroup cannot be placed in a table (filter-view) at the moment and therefore a separate field is needed: -if(!vars.get("$field.SALESORDERCODE") && !vars.get("$field.VERSNR")) - result.string(translate.text("Order")); -else - result.string(vars.get("$field.SALESORDERCODE") + "-" + vars.get("$field.VERSNR")); diff --git a/entity/Order_entity/entityfields/header/valueProcess.js b/entity/Order_entity/entityfields/header/valueProcess.js index 0adc1563dd309d78e547dd920956cfd87d85061d..6b045a0397ae09744e85eb23b00ce6369114ce55 100644 --- a/entity/Order_entity/entityfields/header/valueProcess.js +++ b/entity/Order_entity/entityfields/header/valueProcess.js @@ -7,10 +7,7 @@ import("system.util"); if (vars.get("$this.value") == null) { - if(vars.exists("$param.OrderHeader_param") && vars.get("$param.OrderHeader_param")) - result.string(vars.get("$param.OrderHeader_param")); - - else if(vars.get("$this.value")) + if(vars.get("$this.value")) result.string(vars.get("$this.value")); else if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) @@ -19,9 +16,9 @@ if (vars.get("$this.value") == null) if (vars.get("$field.ChosenTexHeader") != "") { var binaryId = newSelect("ID", SqlUtils.getBinariesAlias()) - .from("ASYS_BINARIES") - .whereIfSet("ASYS_BINARIES.ROW_ID", "$field.ChosenTexHeader") - .cell(true); + .from("ASYS_BINARIES") + .whereIfSet("ASYS_BINARIES.ROW_ID", "$field.ChosenTexHeader") + .cell(true); if (binaryId) result.string(util.decodeBase64String(db.getBinaryContent(binaryId, SqlUtils.getBinariesAlias()))); diff --git a/entity/Order_entity/entityfields/isolanguage/valueProcess.js b/entity/Order_entity/entityfields/isolanguage/valueProcess.js deleted file mode 100644 index 9ce0bbebd61d58530b880b1a513baa32edd4c963..0000000000000000000000000000000000000000 --- a/entity/Order_entity/entityfields/isolanguage/valueProcess.js +++ /dev/null @@ -1,8 +0,0 @@ -import("system.result"); -import("system.vars"); - -if ((vars.get("$this.value") == null || vars.get("$this.value") == undefined) - && vars.exists("$param.OrderLanguage_param") && vars.get("$param.OrderLanguage_param")) -{ - result.string(vars.get("$param.OrderLanguage_param")); -} diff --git a/entity/Order_entity/entityfields/neworderversion/documentation.adoc b/entity/Order_entity/entityfields/neworderversion/documentation.adoc deleted file mode 100644 index 6bbf8c93b4fab59181e46a92743a1eddd3ac0ab7..0000000000000000000000000000000000000000 --- a/entity/Order_entity/entityfields/neworderversion/documentation.adoc +++ /dev/null @@ -1,2 +0,0 @@ -== NEW ORDER VERSION -* _New order version_: All values, orderitems included, are copied and inserted in a **new order version** (versnr. + _1_). \ No newline at end of file diff --git a/entity/Order_entity/entityfields/neworderversion/onActionProcess.js b/entity/Order_entity/entityfields/neworderversion/onActionProcess.js deleted file mode 100644 index 7c40ce8cdba15306b3d8fcee7d73dc1aa11ae3b9..0000000000000000000000000000000000000000 --- a/entity/Order_entity/entityfields/neworderversion/onActionProcess.js +++ /dev/null @@ -1,26 +0,0 @@ -import("system.vars"); -import("system.neon"); -import("Order_lib"); - -var params = { - "ContactId_param" : vars.get("$field.CONTACT_ID"), - "ObjectType_param" : vars.get("$field.OBJECT_TYPE"), - "ObjectRowId_param" : vars.get("$field.OBJECT_ROWID"), - "OrderLanguage_param" : vars.get("$field.ISOLANGUAGE"), - "OfferId_param" : vars.get("$field.OFFER_ID"), - "OrderCode_param" : vars.get("$field.SALESORDERCODE"), - "OrderVersnr_param" : OrderUtils.getNextOrderVersionNumber(vars.get("$field.SALESORDERCODE")), - "OrderCurrency_param" : vars.get("$field.CURRENCY"), - "OrderPaymentAddress_param" : vars.get("$field.PAYMENTADDRESS"), - "OrderDeliveryAddress_param" : vars.get("$field.DELIVERYADDRESS"), - "OrderHeader_param" : vars.get("$field.HEADER"), - "OrderFooter_param" : vars.get("$field.FOOTER"), - "OrderDeliveryTerm_param" : vars.get("$field.DELIVERYTERMS"), - "OrderPaymentTerm_param" : vars.get("$field.PAYMENTTERMS"), - "OrderDunningDate_param" : vars.get("$field.DUNNINGDATE"), - "OrderDunningLevel_param" : vars.get("$field.DUNNINGLEVEL"), - "OrderType_param" : vars.get("$field.ORDERTYPE"), - "OrderCancellation_param" : vars.get("$field.CANCELLATION"), - "OrderStatus_param" : vars.get("$field.ORDERSTATUS") -} -neon.openContext("Order", null, null, neon.OPERATINGSTATE_NEW, params); \ No newline at end of file diff --git a/entity/Order_entity/entityfields/object_rowid/valueProcess.js b/entity/Order_entity/entityfields/object_rowid/valueProcess.js deleted file mode 100644 index 4be89e30a9df56a10e2e57f0ec3da1a813c5b165..0000000000000000000000000000000000000000 --- a/entity/Order_entity/entityfields/object_rowid/valueProcess.js +++ /dev/null @@ -1,7 +0,0 @@ -import("system.neon"); -import("system.vars"); -import("system.result"); - - -if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW && vars.exists("$param.ObjectRowId_param") && vars.get("$param.ObjectRowId_param")) - result.string(vars.get("$param.ObjectRowId_param")); \ No newline at end of file diff --git a/entity/Order_entity/entityfields/object_type/valueProcess.js b/entity/Order_entity/entityfields/object_type/valueProcess.js index 55bd8cc69a8e1aaf581a117bfa22becd8581c312..f8de4e0dc851411d870fe1bbabfd7b3247e5500c 100644 --- a/entity/Order_entity/entityfields/object_type/valueProcess.js +++ b/entity/Order_entity/entityfields/object_type/valueProcess.js @@ -5,11 +5,7 @@ import("Context_lib") if (vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW && !vars.get("$this.value")) { - if (vars.exists("$param.ObjectType_param") && vars.get("$param.ObjectType_param")) - { - result.string(vars.get("$param.ObjectType_param")); - } - else if (vars.exists("$param.PossibleConnectionTypes") && vars.get("$param.PossibleConnectionTypes")) + if (vars.exists("$param.PossibleConnectionTypes") && vars.get("$param.PossibleConnectionTypes")) { var possible = JSON.parse(vars.getString("$param.PossibleConnectionTypes")); if (possible.length > 0) diff --git a/entity/Order_entity/entityfields/offer_id/valueProcess.js b/entity/Order_entity/entityfields/offer_id/valueProcess.js deleted file mode 100644 index aed6796329941efdf70888e87e642c9bfffb0154..0000000000000000000000000000000000000000 --- a/entity/Order_entity/entityfields/offer_id/valueProcess.js +++ /dev/null @@ -1,7 +0,0 @@ -import("system.result"); -import("system.vars"); - -if (vars.exists("$param.OfferId_param")) -{ - result.string(vars.get("$param.OfferId_param")); -} \ No newline at end of file diff --git a/entity/Order_entity/entityfields/ordercode_versnr_fieldgroup/valueProcess.js b/entity/Order_entity/entityfields/ordercode_versnr_fieldgroup/valueProcess.js deleted file mode 100644 index 7e065cc1c9e17fbfa7155cf31690ea680577f12d..0000000000000000000000000000000000000000 --- a/entity/Order_entity/entityfields/ordercode_versnr_fieldgroup/valueProcess.js +++ /dev/null @@ -1,8 +0,0 @@ -import("system.translate"); -import("system.result"); -import("system.vars"); - -if(!vars.get("$field.SALESORDERCODE") && !vars.get("$field.VERSNR")) - result.string(translate.text("Receipt")); -else - result.string(vars.getString("$field.ORDERTYPE.displayValue") + " " + vars.get("$field.SALESORDERCODE") + "-" + vars.get("$field.VERSNR")); diff --git a/entity/Order_entity/entityfields/orderdeliveryaddress_param/documentation.adoc b/entity/Order_entity/entityfields/orderdeliveryaddress_param/documentation.adoc deleted file mode 100644 index b50a32de3db59790cfb871c49c908778c8b43081..0000000000000000000000000000000000000000 --- a/entity/Order_entity/entityfields/orderdeliveryaddress_param/documentation.adoc +++ /dev/null @@ -1 +0,0 @@ -Carries the delivery address of the receipt. Can also be set from the offer if a receipt is to be created from a specified offer. \ No newline at end of file diff --git a/entity/Order_entity/entityfields/orderpaymentaddress_param/documentation.adoc b/entity/Order_entity/entityfields/orderpaymentaddress_param/documentation.adoc deleted file mode 100644 index 43cd09315c3da6da4918fff7eac2d6c0108320db..0000000000000000000000000000000000000000 --- a/entity/Order_entity/entityfields/orderpaymentaddress_param/documentation.adoc +++ /dev/null @@ -1 +0,0 @@ -Carries the main address of the receipt. Can also be set from the offer if a receipt is to be created from a specified offer. \ No newline at end of file diff --git a/entity/Order_entity/entityfields/orderstatus/valueProcess.js b/entity/Order_entity/entityfields/orderstatus/valueProcess.js index f5ecd3b2f061a50dc0f1dd155c269806ad5b6d90..b9588e051171fbbc28133b0f78fb9a2c0f8a8a25 100644 --- a/entity/Order_entity/entityfields/orderstatus/valueProcess.js +++ b/entity/Order_entity/entityfields/orderstatus/valueProcess.js @@ -3,14 +3,5 @@ import("system.vars"); import("system.result"); -if (vars.get("$this.value") == null) { - -if (vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW && vars.get("$this.value") == null){ - if (vars.exists("$param.OrderStatus_param") && vars.get("$param.OrderStatus_param")) - { - result.string(vars.get("$param.OrderStatus_param")); - } - else +if (vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW && vars.get("$this.value") == null) result.string("0"); -} -} \ No newline at end of file diff --git a/entity/Order_entity/entityfields/ordertype/valueProcess.js b/entity/Order_entity/entityfields/ordertype/valueProcess.js index 1a8c788d8297f9560d2707bd9795989748352d18..76d59f30bbacd605d84816370a167c6c9ce16533 100644 --- a/entity/Order_entity/entityfields/ordertype/valueProcess.js +++ b/entity/Order_entity/entityfields/ordertype/valueProcess.js @@ -1,23 +1,10 @@ -import("Keyword_lib"); import("KeywordRegistry_basic"); -import("AttributeRegistry_basic"); -import("system.neon"); +import("Keyword_lib"); import("system.result"); +import("system.neon"); import("system.vars"); -import("Attribute_lib"); -import("Contact_lib"); - -if (vars.get("$this.value") == null) { - if (vars.exists("$param.OrderType_param") && vars.get("$param.OrderType_param")) - { - result.string(vars.get("$param.OrderType_param")); - } - - else if (vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW && vars.get("$this.value") == null) - { - result.string(KeywordUtils.getFirst($KeywordRegistry.orderType())); - } -} \ No newline at end of file +if (vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW && vars.get("$this.value") == null) + result.string(KeywordUtils.getFirst($KeywordRegistry.orderType())); \ No newline at end of file diff --git a/entity/Order_entity/entityfields/paydate/valueProcess.js b/entity/Order_entity/entityfields/paydate/valueProcess.js new file mode 100644 index 0000000000000000000000000000000000000000..d5ae1be32b21e27a07049d1388af7d1feab5f678 --- /dev/null +++ b/entity/Order_entity/entityfields/paydate/valueProcess.js @@ -0,0 +1,7 @@ +import("system.logging"); +import("system.neon"); +import("system.vars"); +import("system.result"); + +if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_EDIT && vars.get("$this.value") == "") + result.string(vars.get("$sys.date")); \ No newline at end of file diff --git a/entity/Order_entity/entityfields/paymentaddress/valueProcess.js b/entity/Order_entity/entityfields/paymentaddress/valueProcess.js deleted file mode 100644 index 8bdbd2e1e87d26be0e3ae0eacfa0585c0fef0018..0000000000000000000000000000000000000000 --- a/entity/Order_entity/entityfields/paymentaddress/valueProcess.js +++ /dev/null @@ -1,10 +0,0 @@ -import("system.neon"); -import("system.result"); -import("system.vars"); - -if (((vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW || vars.get("$sys.recordstate") == neon.OPERATINGSTATE_EDIT) && vars.get("$this.value") == null)){ -if (vars.get("$param.OrderPaymentAddress_param")) -{ - result.string(vars.get("$param.OrderPaymentAddress_param")); -} -} \ No newline at end of file diff --git a/entity/Order_entity/entityfields/paymentterms/valueProcess.js b/entity/Order_entity/entityfields/paymentterms/valueProcess.js index 7f0d5a1cab9400e5de82cdb30f175dbab3f4ed59..7501b966d14bf76fa1fc2ded5b655a8f0e3e9129 100644 --- a/entity/Order_entity/entityfields/paymentterms/valueProcess.js +++ b/entity/Order_entity/entityfields/paymentterms/valueProcess.js @@ -8,14 +8,10 @@ import("system.vars"); import("Attribute_lib"); if (vars.get("$this.value") == null) { - if (vars.get("$param.OrderPaymentTerm_param")) - { - result.string(vars.get("$param.OrderPaymentTerm_param")); - } - else if (vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW && vars.get("$this.value") == null) + if (vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW && vars.get("$this.value") == null) { var presetValue = ""; - var contactIds = ContactUtils.getPersOrgIds(vars.getString("$field.CONTACT_ID")) + var contactIds = ContactUtils.getPersOrgIds(vars.getString("$field.CONTACT_ID")); if (contactIds.length >= 3 && contactIds[2]) { var orgContactId = ContactUtils.getOrgContactId(contactIds[2]); diff --git a/entity/Order_entity/entityfields/salesordercode/valueProcess.js b/entity/Order_entity/entityfields/salesordercode/valueProcess.js index ccfc41b24a693aa2c8f66d86a17c544d9ff15b86..1282b4c9159166206fd88d040640e87e1e393d63 100644 --- a/entity/Order_entity/entityfields/salesordercode/valueProcess.js +++ b/entity/Order_entity/entityfields/salesordercode/valueProcess.js @@ -4,9 +4,4 @@ import("system.neon"); import("Order_lib"); if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) -{ - if (vars.exists("$param.OrderCode_param") && vars.get("$param.OrderCode_param")) - result.string(vars.get("$param.OrderCode_param")); - else - result.string(OrderUtils.getNextOrderNumber()); -} \ No newline at end of file + result.string(OrderUtils.getNextOrderNumber()); diff --git a/entity/Order_entity/entityfields/unpaid/valueProcess.js b/entity/Order_entity/entityfields/unpaid/valueProcess.js deleted file mode 100644 index 1439939a0c2a0926465ff2792b803ac15eadfb3b..0000000000000000000000000000000000000000 --- a/entity/Order_entity/entityfields/unpaid/valueProcess.js +++ /dev/null @@ -1,7 +0,0 @@ -import("system.result"); -import("system.vars"); -import("system.eMath"); - -result.string(eMath.subDec( - vars.get("$field.TotalGross"), - vars.get("$field.PAID"))); \ No newline at end of file diff --git a/entity/Order_entity/entityfields/versnr/documentation.adoc b/entity/Order_entity/entityfields/versnr/documentation.adoc deleted file mode 100644 index 9a71d9a905a2007a61a64e0d7160ee6b2bb4899e..0000000000000000000000000000000000000000 --- a/entity/Order_entity/entityfields/versnr/documentation.adoc +++ /dev/null @@ -1,8 +0,0 @@ -= VERSNR -:hardbreaks: - -Additional to the ordercode there's a version number. -By default it contains the value _1_. - -A new order version can be created over the action _newOrderVersion_. -Then the new value is the old one incremented by _1_. \ No newline at end of file diff --git a/entity/Order_entity/entityfields/versnr/valueProcess.js b/entity/Order_entity/entityfields/versnr/valueProcess.js deleted file mode 100644 index 6c5f491570d2a8e1a2541beb711d11b1d6753d95..0000000000000000000000000000000000000000 --- a/entity/Order_entity/entityfields/versnr/valueProcess.js +++ /dev/null @@ -1,12 +0,0 @@ -import("system.vars"); -import("system.result"); -import("system.neon"); -import("Offer_lib"); - -if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) -{ - if (vars.exists("$param.OrderVersnr_param") && vars.get("$param.OrderVersnr_param")) - result.string(vars.get("$param.OrderVersnr_param")); - else - result.string( "1" ); -} \ No newline at end of file diff --git a/entity/Order_entity/recordcontainers/db/orderClauseProcess.js b/entity/Order_entity/recordcontainers/db/orderClauseProcess.js index e214b63f100778e2e4761ca1a8a5a25c20e13e53..f33113e0e33a700848349964ec93665e6828f937 100644 --- a/entity/Order_entity/recordcontainers/db/orderClauseProcess.js +++ b/entity/Order_entity/recordcontainers/db/orderClauseProcess.js @@ -2,6 +2,5 @@ import("system.result"); import("system.db"); result.object({ - "SALESORDER.SALESORDERCODE": db.DESCENDING, - "SALESORDER.VERSNR": db.DESCENDING + "SALESORDER.SALESORDERCODE": db.DESCENDING }); \ No newline at end of file diff --git a/entity/Order_entity/recordcontainers/db/recordfieldmappings/ordertype.displayvalue/expression.js b/entity/Order_entity/recordcontainers/db/recordfieldmappings/ordertype.displayvalue/expression.js new file mode 100644 index 0000000000000000000000000000000000000000..c4de4de9387832709bf9998b04dd987da1e8d4fe --- /dev/null +++ b/entity/Order_entity/recordcontainers/db/recordfieldmappings/ordertype.displayvalue/expression.js @@ -0,0 +1,5 @@ +import("KeywordRegistry_basic"); +import("system.result"); +import("Keyword_lib"); + +result.string(KeywordUtils.getResolvedTitleSqlPart($KeywordRegistry.orderType(), "SALESORDER.ORDERTYPE")); \ No newline at end of file diff --git a/neonContext/Order/Order.aod b/neonContext/Order/Order.aod index ea7e701bba26b98364ca4f372841e1aaaf43dd0e..d3f8ba0860f318063c886afe075a841d34da9858 100644 --- a/neonContext/Order/Order.aod +++ b/neonContext/Order/Order.aod @@ -35,10 +35,6 @@ <name>ac222647-40b8-43e3-a054-edfc3d69106b</name> <view>OrderLink_view</view> </neonViewReference> - <neonViewReference> - <name>e8fb5f3b-e166-4ee3-9752-e20d9aec0e75</name> - <view>OrderClassification_view</view> - </neonViewReference> <neonViewReference> <name>cea44230-2a80-4a3e-9dc4-3d199f8f6edc</name> <view>OrderDunning_view</view> diff --git a/neonContext/Orderitem/Orderitem.aod b/neonContext/Orderitem/Orderitem.aod index 7317e72be684374f98fb8797603cf4d6a3ec1819..7f83b02e3c96c59afcef3fcd95509ab6950e035e 100644 --- a/neonContext/Orderitem/Orderitem.aod +++ b/neonContext/Orderitem/Orderitem.aod @@ -4,7 +4,6 @@ <majorModelMode>DISTRIBUTED</majorModelMode> <filterView>OrderitemFilter_view</filterView> <editView>OrderitemEdit_view</editView> - <previewView>OrderitemPreview_view</previewView> <entity>Orderitem_entity</entity> <references> <neonViewReference> diff --git a/neonView/OrderClassification_view/OrderClassification_view.aod b/neonView/OrderClassification_view/OrderClassification_view.aod deleted file mode 100644 index d5b6896eeb63b6e9c68ac6ac9e1f438dd316423e..0000000000000000000000000000000000000000 --- a/neonView/OrderClassification_view/OrderClassification_view.aod +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<neonView xmlns="http://www.adito.de/2018/ao/Model" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" VERSION="1.1.6" xsi:schemaLocation="http://www.adito.de/2018/ao/Model adito://models/xsd/neonView/1.1.6"> - <name>OrderClassification_view</name> - <title>Classifications</title> - <majorModelMode>DISTRIBUTED</majorModelMode> - <layout> - <boxLayout> - <name>layout</name> - </boxLayout> - </layout> - <children> - <genericViewTemplate> - <name>Classifications</name> - <entityField>#ENTITY</entityField> - <fields> - <entityFieldLink> - <name>6c01c691-c587-438c-9c92-77682c4fd34e</name> - <entityField>PAYMENTTERMS</entityField> - </entityFieldLink> - <entityFieldLink> - <name>16f9e458-eab5-4ed1-954c-0f2f8cb474e3</name> - <entityField>DELIVERYTERMS</entityField> - </entityFieldLink> - <entityFieldLink> - <name>aed251c9-caa6-462f-9b22-6a87f5998b4e</name> - <entityField>PAYMENTADDRESS</entityField> - </entityFieldLink> - <entityFieldLink> - <name>52dd0767-3a92-4d13-9f72-1bd9e7745b79</name> - <entityField>DELIVERYADDRESS</entityField> - </entityFieldLink> - <entityFieldLink> - <name>7c486c49-22e2-4d61-ac86-b599adbf9522</name> - <entityField>NOTICE</entityField> - </entityFieldLink> - </fields> - </genericViewTemplate> - </children> -</neonView> diff --git a/neonView/OrderDetail_view/OrderDetail_view.aod b/neonView/OrderDetail_view/OrderDetail_view.aod index 6e749e3cfbd8e9a0e2e9b348b4c8186d45aae1ec..d912f8d7a10ffcbd8e1316878d2792510f6ed73c 100644 --- a/neonView/OrderDetail_view/OrderDetail_view.aod +++ b/neonView/OrderDetail_view/OrderDetail_view.aod @@ -27,6 +27,10 @@ <name>6c1b2311-f15f-4d03-9301-0839b504d24a</name> <entityField>DUNNINGTEXT</entityField> </entityFieldLink> + <entityFieldLink> + <name>a488b7cc-bd0e-404a-bb7a-057410a1466d</name> + <entityField>NOTICE</entityField> + </entityFieldLink> </fields> </genericViewTemplate> </children> diff --git a/neonView/OrderEdit_view/OrderEdit_view.aod b/neonView/OrderEdit_view/OrderEdit_view.aod index 7a97e3b7bd9acfe55d2c0627ebc7160415b2668a..e11f3390c8995c5511064190da120587eeb7c7ea 100644 --- a/neonView/OrderEdit_view/OrderEdit_view.aod +++ b/neonView/OrderEdit_view/OrderEdit_view.aod @@ -17,8 +17,8 @@ <entityField>#ENTITY</entityField> <fields> <entityFieldLink> - <name>17536f17-4160-4027-8486-07321692147d</name> - <entityField>OrderCode_VersNr_fieldgroup</entityField> + <name>fa86e5bf-464c-4875-8ae7-630eca39888e</name> + <entityField>SALESORDERCODE</entityField> </entityFieldLink> <entityFieldLink> <name>0f63ee93-c4bb-41e9-a38d-c52bb07f5a11</name> diff --git a/neonView/OrderFilter_view/OrderFilter_view.aod b/neonView/OrderFilter_view/OrderFilter_view.aod index 8986ad83d38ead3ea35912d1be6ddfa5f3068bbc..c8277419b6d7b1aba01606957c9f0f983f669e19 100644 --- a/neonView/OrderFilter_view/OrderFilter_view.aod +++ b/neonView/OrderFilter_view/OrderFilter_view.aod @@ -44,9 +44,9 @@ </neonDashletConfiguration> </dashletConfigurations> <layout> - <groupLayout> + <boxLayout> <name>layout</name> - </groupLayout> + </boxLayout> </layout> <children> <tableViewTemplate> @@ -100,11 +100,11 @@ </columns> </tableViewTemplate> <treeTableViewTemplate> - <name>Treetable</name> + <name>tree</name> <entityField>#ENTITY</entityField> <linkedColumns> <element>IMAGE</element> - <element>FullOrderCode</element> + <element>SALESORDERCODE</element> <element>ORDERTYPE</element> <element>CONTACT_ORG_ID</element> <element>CONTACT_PERSON_ID</element> @@ -115,8 +115,40 @@ </linkedColumns> <columns> <neonTreeTableColumn> - <name>02e3c101-e4c4-4389-b372-8186b7f1e942</name> - <entityField>FullOrderCode</entityField> + <name>b55edb3a-ecbc-4d4c-958e-6e491777895b</name> + <entityField>IMAGE</entityField> + </neonTreeTableColumn> + <neonTreeTableColumn> + <name>61a86526-8928-4e85-979a-ca875730c913</name> + <entityField>SALESORDERCODE</entityField> + </neonTreeTableColumn> + <neonTreeTableColumn> + <name>d85c081c-d45a-4b58-bfff-e393ca2d8ab9</name> + <entityField>ORDERTYPE</entityField> + </neonTreeTableColumn> + <neonTreeTableColumn> + <name>a3e7168a-ea54-43da-9d88-943eba021d8c</name> + <entityField>CONTACT_ORG_ID</entityField> + </neonTreeTableColumn> + <neonTreeTableColumn> + <name>3ca66671-86ec-44bd-882b-ecd726a2a432</name> + <entityField>CONTACT_PERSON_ID</entityField> + </neonTreeTableColumn> + <neonTreeTableColumn> + <name>f3505b7d-4733-4b8b-a1ac-bd4c4b8ef6fe</name> + <entityField>ORDERSTATUS</entityField> + </neonTreeTableColumn> + <neonTreeTableColumn> + <name>93ace207-5c26-46ba-9cfc-2958a43e6c29</name> + <entityField>SALESORDERDATE</entityField> + </neonTreeTableColumn> + <neonTreeTableColumn> + <name>9935b80c-fc62-4bd5-a26c-efbd53a6f438</name> + <entityField>CANCELLATION</entityField> + </neonTreeTableColumn> + <neonTreeTableColumn> + <name>7873c2f2-0dc4-4c54-814a-df970eddea65</name> + <entityField>NET</entityField> </neonTreeTableColumn> </columns> </treeTableViewTemplate> diff --git a/neonView/OrderPreview_view/OrderPreview_view.aod b/neonView/OrderPreview_view/OrderPreview_view.aod index d75cf66b97b4c084d58c56277a54e3e51a5be402..d9d8b6ee2ddff078e38423f59ea1aef9517cfbea 100644 --- a/neonView/OrderPreview_view/OrderPreview_view.aod +++ b/neonView/OrderPreview_view/OrderPreview_view.aod @@ -12,7 +12,7 @@ <cardViewTemplate> <name>Header</name> <iconField>IMAGE</iconField> - <titleField>OrderCode_VersNr_fieldgroup</titleField> + <titleField>SALESORDERCODE</titleField> <descriptionField>CONTACT_ID</descriptionField> <favoriteAction1>newActivity</favoriteAction1> <entityField>#ENTITY</entityField> diff --git a/process/Offer_lib/process.js b/process/Offer_lib/process.js index 8b12e56fdbc6913c720f06ef108364e70115939e..0c256379c13b6773e3ce47459b083c71a1177496 100644 --- a/process/Offer_lib/process.js +++ b/process/Offer_lib/process.js @@ -387,18 +387,24 @@ OfferUtils.copyOfferItems = function (pSourceOfferId, pTargetOfferId) * @param pHeader {String} [header=""] */ OfferUtils.copyToOrder = function (pOfferId, pContextId, pRowId, pContactId, pLanguage, pCurrency, pAddress, pHeader) -{ - var params = { - "ContactId_param" : pContactId, - "ObjectRowId_param" : pRowId, - "ObjectType_param" : pContextId, - "OrderLanguage_param" : pLanguage, - "OfferId_param" : pOfferId, - "OrderCurrency_param" : pCurrency || "", - "OrderPaymentAddress_param" : pAddress || "", - "OrderHeader_param" : pHeader || "" - }; - neon.openContext("Order", null, null, neon.OPERATINGSTATE_NEW, params); +{ + var fieldparams = + { + "$field.CONTACT_ID" : pContactId, + "$field.ISOLANGUAGE" : pLanguage, + "$field.OFFER_ID" : pOfferId, + "$field.CURRENCY" : pCurrency || "", + "$field.HEADER" : pHeader || "", + "$field.PAYMENTADDRESS" : pAddress || "", + "$field.OBJECT_TYPE" : pContextId || "", + "$field.OBJECT_ROWID" : pRowId || "" + }; + + var params = {}; + params["Copy_param"] = JSON.stringify(fieldparams); + params["OfferId_param"] = pOfferId; + + neon.openContext("Order", null, null, neon.OPERATINGSTATE_NEW, params); } /** diff --git a/process/Order_lib/process.js b/process/Order_lib/process.js index b9d4815ae0586e19b95da36fc8c7c8d6825db17a..22b0f95f8fefc6596f8bfb5cd9f66146a09610d4 100644 --- a/process/Order_lib/process.js +++ b/process/Order_lib/process.js @@ -39,7 +39,7 @@ OrderUtils.getNextOrderNumber = function() { * @return {String} orderCode next valid order version number */ OrderUtils.getNextOrderVersionNumber = function(orderCode) { - return NumberSequencingUtils.getNextUniqueNumber("VERSNR", "SALESORDER", 1, "SALESORDERCODE = " + orderCode); + return NumberSequencingUtils.getNextUniqueNumber("SALESORDERCODE", "SALESORDER", 1, "SALESORDERCODE = " + orderCode); } /** @@ -79,41 +79,51 @@ OrderUtils.isDeletable = function(status) { OrderUtils.createNewOrder = function(pContextId, pRowId, pRelationId) { var params = {}; + var fieldparams = {}; if (pRowId && pContextId) { - params["ObjectRowId_param"] = pRowId; - params["ObjectType_param"] = pContextId; + fieldparams["$field.OBJECT_TYPE"] = pContextId || ""; + fieldparams["$field.OBJECT_ROWID"] = pRowId || ""; } if (pRelationId) + { + fieldparams["$field.CONTACT_ID"] = pRelationId; params["ContactId_param"] = pRelationId; + } + params["Copy_param"] = JSON.stringify(fieldparams); neon.openContext("Order", null, null, neon.OPERATINGSTATE_NEW, params); } -//TODO refactor function to minimize the params and only give an object that contains the data OrderUtils.copyOrder = function (pSourceOfferId, pContactId, pOrderType, pLanguage, pCurrency, pHeader, pFooter, pDeliveryTerm, pPaymentTerm, pPaymentAddress, pDeliveryAddress, pObjectType, pRowId, pDunningDate, pDunningLevel, pCancellation, pOrderStatus) { - var params = { - "ContactId_param" : pContactId, - "OrderType_param" : pOrderType, - "OrderLanguage_param" : pLanguage, - "OfferId_param" : pSourceOfferId, - "OrderCurrency_param" : pCurrency || "", - "OrderHeader_param" : pHeader || "", - "OrderFooter_param" : pFooter || "", - "OrderDeliveryTerm_param" : pDeliveryTerm || "", - "OrderPaymentTerm_param" : pPaymentTerm || "", - "OrderPaymentAddress_param" : pPaymentAddress || "", - "OrderDeliveryAddress_param" : pDeliveryAddress || "", - "ObjectType_param" : pObjectType || "", - "ObjectRowId_param" : pRowId || "", - "OrderDunningDate_param" : pDunningDate || "", - "OrderDunningLevel_param" : pDunningLevel || "", - "OrderCancellation_param" : pCancellation || "", - "OrderStatus_param" : pOrderStatus || "" + + var fieldparams = { + "$field.CONTACT_ID" : pContactId, + "$field.ORDERTYPE" : pOrderType, + "$field.ISOLANGUAGE" : pLanguage, + "$field.OFFER_ID" : pSourceOfferId, + "$field.CURRENCY" : pCurrency || "", + "$field.HEADER" : pHeader || "", + "$field.FOOTER" : pFooter || "", + "$field.DELIVERYTERMS" : pDeliveryTerm || "", + "$field.PAYMENTTERMS" : pPaymentTerm || "", + "$field.PAYMENTADDRESS" : pPaymentAddress || "", + "$field.DELIVERYADDRESS" : pDeliveryAddress || "", + "$field.OBJECT_TYPE" : pObjectType || "", + "$field.OBJECT_ROWID" : pRowId || "", + "$field.DUNNINGDATE" : pDunningDate || "", + "$field.DUNNINGLEVEL" : pDunningLevel || "", + "$field.CANCELLATION" : pCancellation || "", + "$field.ORDERSTATUS" : pOrderStatus || "" }; + + var params = {}; + params["Copy_param"] = JSON.stringify(fieldparams); + params["OfferId_param"] = pSourceOfferId; + neon.openContext("Order", null, null, neon.OPERATINGSTATE_NEW, params); } @@ -187,7 +197,6 @@ OrderUtils.buildOrderReport = function (pOrderID) "SALESORDERDATE", "HEADER", //8 "VAT", - sqlUtil.isNull("VERSNR", "0"), sqlUtil.isNull("SALESORDERCODE", "0"), "OBJECT_TYPE", //12 "OBJECT_ROWID", //13 @@ -278,11 +287,10 @@ OrderUtils.buildOrderReport = function (pOrderID) item[5], //itemposition item[6], //productcode orderData[8], //header - orderData[14], //footer + orderData[13], //footer text.formatDouble(item[9], "#,##0", true), //quantity text.formatDouble(item[10], "#,##0.00", true), //price text.formatDouble(item[11], "0.00", true), //discount - orderData[10], //versnr orderData[5], //offercode text.formatDouble(orderData[9], "#,##0.00", true), //vat text.formatDouble(itemSum, "#,##0.00", true), //itemsum @@ -362,7 +370,6 @@ OrderUtils.buildOrderReport = function (pOrderID) "QUANTITY", "PRICE", "ORDERITEM.DISCOUNT", //13 - "SALESORDER_VERSNR", "ORDERCODE", "SALESORDER.VAT", "ITEMSUM", // 17 @@ -411,7 +418,6 @@ OrderUtils.buildReminderReport = function (pOrderID) "SALESORDERDATE", "HEADER", //8 "VAT", - sqlUtil.isNull("VERSNR", "0"), sqlUtil.isNull("SALESORDERCODE", "0"), "OBJECT_TYPE", //12 "OBJECT_ROWID", //13 @@ -435,7 +441,8 @@ OrderUtils.buildReminderReport = function (pOrderID) .cell(); orderData[7] = datetime.toDate(orderData[7], translate.text("dd.MM.yyyy", language)); - orderData[18] = datetime.toDate(orderData[18], translate.text("dd.MM.yyyy", language)); + orderData[17] = datetime.toDate(orderData[17], translate.text("dd.MM.yyyy", language)); + orderData[18] = KeywordUtils.getViewValue("DunningLevel", orderData[18]); var orderItemFields = [ "SALESORDERITEM.INFO", @@ -473,8 +480,8 @@ OrderUtils.buildReminderReport = function (pOrderID) var sums = []; var vatsum = 0; var printDiscount = false; - var brutto=eMath.addDec(orderData[17], orderData[9]); - var offen=eMath.subDec(brutto, orderData[16]); + var grossPrice=eMath.addDec(orderData[16], orderData[9]); + var open=eMath.subDec(grossPrice, orderData[15]); itemData = itemData.map(function (item) { //quantity * price @@ -498,18 +505,18 @@ OrderUtils.buildReminderReport = function (pOrderID) printDiscount = true; return [ - orderData[16], //payed + orderData[15], //payed pOrderID, //relationid orderData[6], //currency orderData[7], //orderdate text.formatDouble(orderData[9], "#,##0.00", true), //vat - orderData[11], //ordercode - orderData[17], //net - text.formatDouble(brutto, "#,##0.00", true),//brutto - text.formatDouble(offen, "#,##0.00", true),//offen - orderData[18], //due date - orderData[20], //dunning text - orderData[19] //dunninglevel + orderData[10], //ordercode + orderData[16], //net + text.formatDouble(grossPrice, "#,##0.00", true),//grossPrice + text.formatDouble(open, "#,##0.00", true),//open + orderData[17], //due date + orderData[19], //dunning text + orderData[18] //dunninglevel ]; }); diff --git a/report/Offer_report/reportData.jrxml b/report/Offer_report/reportData.jrxml index 54ef644c16b90f8066509a2fedf6ca135c56cebd..f2afe8275137822933e3b91b78f69ef96e2879dd 100644 --- a/report/Offer_report/reportData.jrxml +++ b/report/Offer_report/reportData.jrxml @@ -52,7 +52,6 @@ <field name="PRODUCT_PRODUCTCODE" class="java.lang.String"/> <field name="OFFER_HEADER" class="java.lang.String"/> <field name="ITEMSUM" class="java.lang.String"/> - <field name="OFFER_VERSNR" class="java.lang.String"/> <field name="OFFER_FOOTER" class="java.lang.String"/> <sortField name="OFFER_OFFERID"/> <group name="OFFERID" isStartNewPage="true"> @@ -106,7 +105,7 @@ <textElement textAlignment="Right"> <font size="8"/> </textElement> - <textFieldExpression><![CDATA[$F{OFFER_OFFERCODE} + "-" + $F{OFFER_VERSNR}]]></textFieldExpression> + <textFieldExpression><![CDATA[$F{OFFER_OFFERCODE}]]></textFieldExpression> </textField> <textField> <reportElement x="372" y="35" width="183" height="15" uuid="9f7aeac2-3844-43ee-bc8b-b11f8701b83e"> diff --git a/report/Salesorder_report/reportData.jrxml b/report/Salesorder_report/reportData.jrxml index 028bf1f2db672eb55be61e6d6c3888b3caddb7f5..496fcde2e9eb86deb652b4884531c1b77c2a40fb 100644 --- a/report/Salesorder_report/reportData.jrxml +++ b/report/Salesorder_report/reportData.jrxml @@ -1,8 +1,8 @@ <?xml version="1.0" encoding="UTF-8"?> <jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="Beleg" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="e7a916c8-3f9a-497d-84bb-3909b15271ea"> - <property name="ireport.zoom" value="1.5"/> + <property name="ireport.zoom" value="1.0"/> <property name="ireport.x" value="0"/> - <property name="ireport.y" value="63"/> + <property name="ireport.y" value="0"/> <parameter name="myAddr" class="java.lang.String"/> <parameter name="Artikelbezeichnung" class="java.lang.String"/> <parameter name="Artikel-Nr" class="java.lang.String"/>