Something went wrong on our end
-
Johannes Goderbauer authoredJohannes Goderbauer authored
Productprice_entity.aod 10.09 KiB
<?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.2.0" xsi:schemaLocation="http://www.adito.de/2018/ao/Model adito://models/xsd/entity/1.2.0">
<name>Productprice_entity</name>
<title>Price list</title>
<majorModelMode>DISTRIBUTED</majorModelMode>
<documentation>%aditoprj%/entity/Productprice_entity/documentation.adoc</documentation>
<recordContainer>db</recordContainer>
<entityFields>
<entityField>
<name>BUYSELL</name>
<title>PP/SP</title>
<mandatory v="true" />
<possibleItemsProcess>%aditoprj%/entity/Productprice_entity/entityfields/buysell/possibleItemsProcess.js</possibleItemsProcess>
<valueProcess>%aditoprj%/entity/Productprice_entity/entityfields/buysell/valueProcess.js</valueProcess>
</entityField>
<entityField>
<name>CURRENCY</name>
<title>Currency</title>
<consumer>KeywordCurrencies</consumer>
<mandatory v="true" />
</entityField>
<entityField>
<name>FROMQUANTITY</name>
<title>From no. of units</title>
<contentType>TEXT</contentType>
<outputFormat>#,##0</outputFormat>
<mandatory v="true" />
<state>AUTO</state>
<valueProcess>%aditoprj%/entity/Productprice_entity/entityfields/fromquantity/valueProcess.js</valueProcess>
</entityField>
<entityField>
<name>PRICE</name>
<title>Price</title>
<contentType>TEXT</contentType>
<outputFormat>#,##0.00</outputFormat>
<mandatory v="true" />
</entityField>
<entityField>
<name>PRODUCTPRICEID</name>
<valueProcess>%aditoprj%/entity/Productprice_entity/entityfields/productpriceid/valueProcess.js</valueProcess>
</entityField>
<entityField>
<name>PRODUCT_ID</name>
<title>Product</title>
<consumer>Products</consumer>
<linkedContext>Product_context</linkedContext>
<mandatory v="true" />
<state>AUTO</state>
<valueProcess>%aditoprj%/entity/Productprice_entity/entityfields/product_id/valueProcess.js</valueProcess>
<displayValueProcess>%aditoprj%/entity/Productprice_entity/entityfields/product_id/displayValueProcess.js</displayValueProcess>
</entityField>
<entityField>
<name>CONTACT_ID</name>
<title>Company</title>
<valueProcess>%aditoprj%/entity/Productprice_entity/entityfields/contact_id/valueProcess.js</valueProcess>
</entityField>
<entityField>
<name>VALID_FROM</name>
<title>Valid from</title>
<contentType>DATE</contentType>
<resolution>DAY</resolution>
<mandatory v="true" />
<onValidation>%aditoprj%/entity/Productprice_entity/entityfields/valid_from/onValidation.js</onValidation>
</entityField>
<entityField>
<name>VALID_TO</name>
<title>Valid until</title>
<contentType>DATE</contentType>
<resolution>DAY</resolution>
<onValidation>%aditoprj%/entity/Productprice_entity/entityfields/valid_to/onValidation.js</onValidation>
</entityField>
<entityField>
<name>VAT</name>
<title>VAT</title>
<contentType>TEXT</contentType>
<outputFormat>#,##0.00</outputFormat>
<mandatory v="true" />
<onValidation>%aditoprj%/entity/Productprice_entity/entityfields/vat/onValidation.js</onValidation>
</entityField>
<entityField>
<name>PRICELIST</name>
<documentation>%aditoprj%/entity/Productprice_entity/entityfields/pricelist/documentation.adoc</documentation>
<title>Price list</title>
<consumer>KeywordPricelists</consumer>
<mandatoryProcess>%aditoprj%/entity/Productprice_entity/entityfields/pricelist/mandatoryProcess.js</mandatoryProcess>
<state>AUTO</state>
<stateProcess>%aditoprj%/entity/Productprice_entity/entityfields/pricelist/stateProcess.js</stateProcess>
<titleProcess>%aditoprj%/entity/Productprice_entity/entityfields/pricelist/titleProcess.js</titleProcess>
<onValidation>%aditoprj%/entity/Productprice_entity/entityfields/pricelist/onValidation.js</onValidation>
</entityField>
<entityParameter>
<name>ProductId_param</name>
<expose v="true" />
<triggerRecalculation v="true" />
<mandatory v="false" />
<description>PARAMETER</description>
</entityParameter>
<entityParameter>
<name>RelID_param</name>
<expose v="true" />
<triggerRecalculation v="true" />
<mandatory v="false" />
<description>PARAMETER</description>
</entityParameter>
<entityConsumer>
<name>Products</name>
<fieldType>DEPENDENCY_OUT</fieldType>
<dependency>
<name>dependency</name>
<entityName>Product_entity</entityName>
<fieldName>#PROVIDER</fieldName>
</dependency>
</entityConsumer>
<entityField>
<name>IMAGE</name>
<contentType>IMAGE</contentType>
<valueProcess>%aditoprj%/entity/Productprice_entity/entityfields/image/valueProcess.js</valueProcess>
</entityField>
<entityProvider>
<name>#PROVIDER</name>
<recordContainer>db</recordContainer>
</entityProvider>
<entityProvider>
<name>Productprices</name>
<fieldType>DEPENDENCY_IN</fieldType>
<recordContainer>db</recordContainer>
<dependencies>
<entityDependency>
<name>d5f4c7c4-cd21-4075-bd56-c479672dc09a</name>
<entityName>Product_entity</entityName>
<fieldName>Productprices</fieldName>
<isConsumer v="false" />
</entityDependency>
<entityDependency>
<name>4efc927f-7441-480c-aaaa-36347e2e60c5</name>
<entityName>Person_entity</entityName>
<fieldName>Pricelists</fieldName>
<isConsumer v="false" />
</entityDependency>
<entityDependency>
<name>dc9e2360-1769-41ec-b4ec-1a4c67013ef8</name>
<entityName>Organisation_entity</entityName>
<fieldName>Productprices</fieldName>
<isConsumer v="false" />
</entityDependency>
</dependencies>
</entityProvider>
<entityConsumer>
<name>KeywordCurrencies</name>
<fieldType>DEPENDENCY_OUT</fieldType>
<dependency>
<name>dependency</name>
<entityName>KeywordEntry_entity</entityName>
<fieldName>SpecificContainerKeywords</fieldName>
</dependency>
<children>
<entityParameter>
<name>containerName_param</name>
<code>%aditoprj%/entity/Productprice_entity/entityfields/keywordcurrencies/children/containername_param/code.js</code>
</entityParameter>
</children>
</entityConsumer>
<entityConsumer>
<name>KeywordPricelists</name>
<fieldType>DEPENDENCY_OUT</fieldType>
<dependency>
<name>dependency</name>
<entityName>KeywordEntry_entity</entityName>
<fieldName>SpecificContainerKeywords</fieldName>
</dependency>
<children>
<entityParameter>
<name>containerName_param</name>
<code>%aditoprj%/entity/Productprice_entity/entityfields/keywordpricelists/children/containername_param/code.js</code>
</entityParameter>
</children>
</entityConsumer>
</entityFields>
<recordContainers>
<dbRecordContainer>
<name>db</name>
<alias>Data_alias</alias>
<conditionProcess>%aditoprj%/entity/Productprice_entity/recordcontainers/db/conditionProcess.js</conditionProcess>
<orderClauseProcess>%aditoprj%/entity/Productprice_entity/recordcontainers/db/orderClauseProcess.js</orderClauseProcess>
<linkInformation>
<linkInformation>
<name>85fd1bcf-499f-4708-ad8e-18f5a0f5337d</name>
<tableName>PRODUCTPRICE</tableName>
<primaryKey>PRODUCTPRICEID</primaryKey>
<isUIDTable v="true" />
<readonly v="false" />
</linkInformation>
</linkInformation>
<recordFieldMappings>
<dbRecordFieldMapping>
<name>BUYSELL.value</name>
<recordfield>PRODUCTPRICE.BUYSELL</recordfield>
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>CURRENCY.value</name>
<recordfield>PRODUCTPRICE.CURRENCY</recordfield>
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>FROMQUANTITY.value</name>
<recordfield>PRODUCTPRICE.FROMQUANTITY</recordfield>
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>PRICE.value</name>
<recordfield>PRODUCTPRICE.PRICE</recordfield>
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>PRICELIST.value</name>
<recordfield>PRODUCTPRICE.PRICELIST</recordfield>
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>PRODUCTPRICEID.value</name>
<recordfield>PRODUCTPRICE.PRODUCTPRICEID</recordfield>
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>PRODUCT_ID.value</name>
<recordfield>PRODUCTPRICE.PRODUCT_ID</recordfield>
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>CONTACT_ID.value</name>
<recordfield>PRODUCTPRICE.CONTACT_ID</recordfield>
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>VALID_FROM.value</name>
<recordfield>PRODUCTPRICE.VALID_FROM</recordfield>
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>VALID_TO.value</name>
<recordfield>PRODUCTPRICE.VALID_TO</recordfield>
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>VAT.value</name>
<recordfield>PRODUCTPRICE.VAT</recordfield>
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>CURRENCY.displayValue</name>
<expression>%aditoprj%/entity/Productprice_entity/recordcontainers/db/recordfieldmappings/currency.displayvalue/expression.js</expression>
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>PRICELIST.displayValue</name>
<expression>%aditoprj%/entity/Productprice_entity/recordcontainers/db/recordfieldmappings/pricelist.displayvalue/expression.js</expression>
</dbRecordFieldMapping>
</recordFieldMappings>
</dbRecordContainer>
</recordContainers>
</entity>