<?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.0.4" xsi:schemaLocation="http://www.adito.de/2018/ao/Model adito://models/xsd/entity/1.0.4">
  <name>Productprice_entity</name>
  <title>Price list</title>
  <majorModelMode>DISTRIBUTED</majorModelMode>
  <documentation>%aditoprj%/entity/Productprice_entity/documentation.adoc</documentation>
  <grantCreateProcess>%aditoprj%/entity/Productprice_entity/grantCreateProcess.js</grantCreateProcess>
  <recordContainerType>DB</recordContainerType>
  <caption>Price list</caption>
  <onValidation>%aditoprj%/entity/Productprice_entity/onValidation.js</onValidation>
  <alias>Data_alias</alias>
  <conditionProcess>%aditoprj%/entity/Productprice_entity/conditionProcess.js</conditionProcess>
  <orderClauseProcess>%aditoprj%/entity/Productprice_entity/orderClauseProcess.js</orderClauseProcess>
  <onDBInsert>%aditoprj%/entity/Productprice_entity/onDBInsert.js</onDBInsert>
  <entityFields>
    <entityField>
      <name>BUYSELL</name>
      <tableName>PRODUCTPRICE</tableName>
      <columnName>BUYSELL</columnName>
      <caption>PP/SP</caption>
      <mandatory v="true" />
      <mandatoryProcess>%aditoprj%/entity/Productprice_entity/entityfields/buysell/mandatoryProcess.js</mandatoryProcess>
      <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>
      <tableName>PRODUCTPRICE</tableName>
      <columnName>CURRENCY</columnName>
      <caption>Currency</caption>
      <mandatory v="true" />
      <possibleItemsProcess>%aditoprj%/entity/Productprice_entity/entityfields/currency/possibleItemsProcess.js</possibleItemsProcess>
    </entityField>
    <entityField>
      <name>DATE_EDIT</name>
      <tableName>PRODUCTPRICE</tableName>
      <columnName>DATE_EDIT</columnName>
      <contentType>DATE</contentType>
      <outputFormat>yyyy-MM-dd&amp;apos;T&amp;apos;HH:mm:ssZ</outputFormat>
      <valueProcess>%aditoprj%/entity/Productprice_entity/entityfields/date_edit/valueProcess.js</valueProcess>
    </entityField>
    <entityField>
      <name>DATE_NEW</name>
      <tableName>PRODUCTPRICE</tableName>
      <columnName>DATE_NEW</columnName>
      <contentType>DATE</contentType>
      <outputFormat>yyyy-MM-dd&amp;apos;T&amp;apos;HH:mm:ssZ</outputFormat>
      <valueProcess>%aditoprj%/entity/Productprice_entity/entityfields/date_new/valueProcess.js</valueProcess>
    </entityField>
    <entityField>
      <name>FROMQUANTITY</name>
      <tableName>PRODUCTPRICE</tableName>
      <columnName>FROMQUANTITY</columnName>
      <caption>From no. of units</caption>
      <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>
      <tableName>PRODUCTPRICE</tableName>
      <columnName>PRICE</columnName>
      <caption>Price</caption>
      <contentType>TEXT</contentType>
      <outputFormat>#,##0.00</outputFormat>
      <mandatory v="true" />
    </entityField>
    <entityField>
      <name>PRODUCTPRICEID</name>
      <tableName>PRODUCTPRICE</tableName>
      <columnName>PRODUCTPRICEID</columnName>
      <valueProcess>%aditoprj%/entity/Productprice_entity/entityfields/productpriceid/valueProcess.js</valueProcess>
    </entityField>
    <entityField>
      <name>PRODUCT_ID</name>
      <tableName>PRODUCTPRICE</tableName>
      <columnName>PRODUCT_ID</columnName>
      <caption>Product</caption>
      <linkedContext>Product_context</linkedContext>
      <mandatory v="false" />
      <outgoingField>ProductpriceProduct_dfo</outgoingField>
      <possibleItemsProcess>%aditoprj%/entity/Productprice_entity/entityfields/product_id/possibleItemsProcess.js</possibleItemsProcess>
      <state>AUTO</state>
      <valueProcess>%aditoprj%/entity/Productprice_entity/entityfields/product_id/valueProcess.js</valueProcess>
      <fieldIdProcess>%aditoprj%/entity/Productprice_entity/entityfields/product_id/fieldIdProcess.js</fieldIdProcess>
    </entityField>
    <entityField>
      <name>RELATION_ID</name>
      <tableName>PRODUCTPRICE</tableName>
      <columnName>RELATION_ID</columnName>
      <caption>Company</caption>
      <valueProcess>%aditoprj%/entity/Productprice_entity/entityfields/relation_id/valueProcess.js</valueProcess>
    </entityField>
    <entityField>
      <name>USER_EDIT</name>
      <tableName>PRODUCTPRICE</tableName>
      <columnName>USER_EDIT</columnName>
      <valueProcess>%aditoprj%/entity/Productprice_entity/entityfields/user_edit/valueProcess.js</valueProcess>
    </entityField>
    <entityField>
      <name>USER_NEW</name>
      <tableName>PRODUCTPRICE</tableName>
      <columnName>USER_NEW</columnName>
      <valueProcess>%aditoprj%/entity/Productprice_entity/entityfields/user_new/valueProcess.js</valueProcess>
    </entityField>
    <entityField>
      <name>VALID_FROM</name>
      <tableName>PRODUCTPRICE</tableName>
      <columnName>VALID_FROM</columnName>
      <caption>Valid from</caption>
      <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>
      <tableName>PRODUCTPRICE</tableName>
      <columnName>VALID_TO</columnName>
      <caption>Valid until</caption>
      <contentType>DATE</contentType>
      <resolution>DAY</resolution>
      <onValidation>%aditoprj%/entity/Productprice_entity/entityfields/valid_to/onValidation.js</onValidation>
    </entityField>
    <entityField>
      <name>VAT</name>
      <tableName>PRODUCTPRICE</tableName>
      <columnName>VAT</columnName>
      <caption>VAT</caption>
      <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>
      <tableName>PRODUCTPRICE</tableName>
      <columnName>PRICELIST</columnName>
      <caption>Price list</caption>
      <captionProcess>%aditoprj%/entity/Productprice_entity/entityfields/pricelist/captionProcess.js</captionProcess>
      <possibleItemsProcess>%aditoprj%/entity/Productprice_entity/entityfields/pricelist/possibleItemsProcess.js</possibleItemsProcess>
      <state>AUTO</state>
      <stateProcess>%aditoprj%/entity/Productprice_entity/entityfields/pricelist/stateProcess.js</stateProcess>
      <valueProcess>%aditoprj%/entity/Productprice_entity/entityfields/pricelist/valueProcess.js</valueProcess>
      <onValidation>%aditoprj%/entity/Productprice_entity/entityfields/pricelist/onValidation.js</onValidation>
    </entityField>
    <entityIncomingField>
      <name>ProductProductprice_dfi</name>
      <fieldType>DEPENDENCY_IN</fieldType>
      <dependencies>
        <entityDependency>
          <name>72e12036-8c56-4cc7-a86e-fc4b0d743825</name>
          <entityName>Product_entity</entityName>
          <fieldName>ProductProductprice_dfo</fieldName>
          <isOutgoing v="false" />
        </entityDependency>
        <entityDependency>
          <name>5a15f01e-07eb-49e4-85c7-9ec643d65627</name>
          <entityName>Product_entity</entityName>
          <fieldName>ProductProductpriceCurr_dfo</fieldName>
          <isOutgoing v="false" />
        </entityDependency>
      </dependencies>
    </entityIncomingField>
    <entityParameter>
      <name>ProductId_param</name>
      <expose v="true" />
      <triggerRecalculation v="true" />
      <mandatory v="false" />
      <description>PARAMETER</description>
    </entityParameter>
    <entityField>
      <name>PRODUCT_GROUPCODEID</name>
      <caption>Product group</caption>
      <possibleItemsProcess>%aditoprj%/entity/Productprice_entity/entityfields/product_groupcodeid/possibleItemsProcess.js</possibleItemsProcess>
    </entityField>
    <entityIncomingField>
      <name>OrgProductprice_dfi</name>
      <fieldType>DEPENDENCY_IN</fieldType>
      <dependencies>
        <entityDependency>
          <name>93263731-7e48-4933-bdea-500a58a53357</name>
          <entityName>Org_entity</entityName>
          <fieldName>OrgProductprice_dfo</fieldName>
          <isOutgoing v="false" />
        </entityDependency>
      </dependencies>
    </entityIncomingField>
    <entityParameter>
      <name>RelID_param</name>
      <expose v="true" />
      <triggerRecalculation v="true" />
      <mandatory v="false" />
      <description>PARAMETER</description>
    </entityParameter>
    <entityIncomingField>
      <name>PersProductprice_dfi</name>
      <fieldType>DEPENDENCY_IN</fieldType>
      <dependencies>
        <entityDependency>
          <name>268bacb4-334d-42ba-9685-11e4854f0d85</name>
          <entityName>Pers_entity</entityName>
          <fieldName>PersPricelist_dfo</fieldName>
          <isOutgoing v="false" />
        </entityDependency>
      </dependencies>
      <children>
        <entityParameter>
          <name>RelID_param</name>
          <code>%aditoprj%/entity/Productprice_entity/entityfields/persproductprice_dfi/children/relid_param/code.js</code>
        </entityParameter>
      </children>
    </entityIncomingField>
    <entityOutgoingField>
      <name>ProductpriceProduct_dfo</name>
      <fieldType>DEPENDENCY_OUT</fieldType>
      <dependency>
        <name>dependency</name>
        <entityName>Product_entity</entityName>
        <fieldName>Product_dfi</fieldName>
      </dependency>
    </entityOutgoingField>
    <entityField>
      <name>IMAGE</name>
      <contentType>IMAGE</contentType>
      <valueProcess>%aditoprj%/entity/Productprice_entity/entityfields/image/valueProcess.js</valueProcess>
    </entityField>
    <entityField>
      <name>currentPurchasePrice</name>
      <caption>Curr. sales price</caption>
      <contentType>NUMBER</contentType>
      <outputFormat>#,##0.00 €</outputFormat>
      <valueProcess>%aditoprj%/entity/Productprice_entity/entityfields/currentpurchaseprice/valueProcess.js</valueProcess>
    </entityField>
    <entityField>
      <name>currentSalesPrice</name>
      <caption>Curr. sales price</caption>
      <contentType>NUMBER</contentType>
      <outputFormat>#,##0.00 €</outputFormat>
      <valueProcess>%aditoprj%/entity/Productprice_entity/entityfields/currentsalesprice/valueProcess.js</valueProcess>
    </entityField>
    <entityIncomingField>
      <name>#INCOMING</name>
    </entityIncomingField>
  </entityFields>
  <linkInformation>
    <linkInformation>
      <name>4535ba84-879c-43c1-8fb4-24ecc4b8e13e</name>
      <tableName>PRODUCTPRICE</tableName>
      <primaryKey>PRODUCTPRICEID</primaryKey>
      <isUIDTable v="true" />
    </linkInformation>
  </linkInformation>
</entity>