Skip to content
Snippets Groups Projects
Offer_entity.aod 19.20 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.1.1" xsi:schemaLocation="http://www.adito.de/2018/ao/Model adito://models/xsd/entity/1.1.1">
  <name>Offer_entity</name>
  <title>Offer</title>
  <majorModelMode>DISTRIBUTED</majorModelMode>
  <documentation>%aditoprj%/entity/Offer_entity/documentation.adoc</documentation>
  <iconId>VAADIN:CART</iconId>
  <titleProcess>%aditoprj%/entity/Offer_entity/titleProcess.js</titleProcess>
  <recordContainer>db</recordContainer>
  <entityFields>
    <entityIncomingField>
      <name>#INCOMING</name>
    </entityIncomingField>
    <entityField>
      <name>CURRENCY</name>
      <title>Currency</title>
      <possibleItemsProcess>%aditoprj%/entity/Offer_entity/entityfields/currency/possibleItemsProcess.js</possibleItemsProcess>
    </entityField>
    <entityField>
      <name>DATE_EDIT</name>
      <contentType>DATE</contentType>
      <outputFormat>yyyy-MM-dd&amp;apos;T&amp;apos;HH:mm:ssZ</outputFormat>
      <searchable v="false" />
      <valueProcess>%aditoprj%/entity/Offer_entity/entityfields/date_edit/valueProcess.js</valueProcess>
    </entityField>
    <entityField>
      <name>DATE_NEW</name>
      <contentType>DATE</contentType>
      <searchable v="false" />
      <valueProcess>%aditoprj%/entity/Offer_entity/entityfields/date_new/valueProcess.js</valueProcess>
    </entityField>
    <entityField>
      <name>OFFERCODE</name>
      <documentation>%aditoprj%/entity/Offer_entity/entityfields/offercode/documentation.adoc</documentation>
      <title>Offer number</title>
      <state>READONLY</state>
      <valueProcess>%aditoprj%/entity/Offer_entity/entityfields/offercode/valueProcess.js</valueProcess>
      <onValidation>%aditoprj%/entity/Offer_entity/entityfields/offercode/onValidation.js</onValidation>
    </entityField>
    <entityField>
      <name>OFFERDATE</name>
      <title>Creation date</title>
      <contentType>DATE</contentType>
      <resolution>DAY</resolution>
      <mandatory v="true" />
      <valueProcess>%aditoprj%/entity/Offer_entity/entityfields/offerdate/valueProcess.js</valueProcess>
    </entityField>
    <entityField>
      <name>OFFERID</name>
      <searchable v="false" />
      <valueProcess>%aditoprj%/entity/Offer_entity/entityfields/offerid/valueProcess.js</valueProcess>
    </entityField>
    <entityField>
      <name>PROBABILITY</name>
      <title>Probability</title>
      <possibleItemsProcess>%aditoprj%/entity/Offer_entity/entityfields/probability/possibleItemsProcess.js</possibleItemsProcess>
    </entityField>
    <entityField>
      <name>RELATION_ID</name>
      <documentation>%aditoprj%/entity/Offer_entity/entityfields/relation_id/documentation.adoc</documentation>
      <title>Connection</title>
      <linkedContextProcess>%aditoprj%/entity/Offer_entity/entityfields/relation_id/linkedContextProcess.js</linkedContextProcess>
      <mandatory v="true" />
      <outgoingField>OfferRelation_dfo</outgoingField>
      <valueProcess>%aditoprj%/entity/Offer_entity/entityfields/relation_id/valueProcess.js</valueProcess>
      <displayValueProcess>%aditoprj%/entity/Offer_entity/entityfields/relation_id/displayValueProcess.js</displayValueProcess>
      <onValueChange>%aditoprj%/entity/Offer_entity/entityfields/relation_id/onValueChange.js</onValueChange>
      <onValueChangeTypes>
        <element>MASK</element>
      </onValueChangeTypes>
    </entityField>
    <entityField>
      <name>SALESPROJECT_ID</name>
      <title>Salesproject</title>
      <linkedContext>Salesproject_context</linkedContext>
      <mandatoryProcess>%aditoprj%/entity/Offer_entity/entityfields/salesproject_id/mandatoryProcess.js</mandatoryProcess>
      <outgoingField>OfferSalesproject_dfo</outgoingField>
      <state>INVISIBLE</state>
      <stateProcess>%aditoprj%/entity/Offer_entity/entityfields/salesproject_id/stateProcess.js</stateProcess>
      <valueProcess>%aditoprj%/entity/Offer_entity/entityfields/salesproject_id/valueProcess.js</valueProcess>
      <displayValueProcess>%aditoprj%/entity/Offer_entity/entityfields/salesproject_id/displayValueProcess.js</displayValueProcess>
    </entityField>
    <entityField>
      <name>STATUS</name>
      <title>Status</title>
      <possibleItemsProcess>%aditoprj%/entity/Offer_entity/entityfields/status/possibleItemsProcess.js</possibleItemsProcess>
      <state>EDITABLE</state>
    </entityField>
    <entityField>
      <name>USER_EDIT</name>
      <searchable v="false" />
      <valueProcess>%aditoprj%/entity/Offer_entity/entityfields/user_edit/valueProcess.js</valueProcess>
    </entityField>
    <entityField>
      <name>USER_NEW</name>
      <searchable v="false" />
      <valueProcess>%aditoprj%/entity/Offer_entity/entityfields/user_new/valueProcess.js</valueProcess>
    </entityField>
    <entityField>
      <name>VAT</name>
      <title>Total VAT</title>
      <state>READONLY</state>
    </entityField>
    <entityField>
      <name>IMAGE</name>
      <contentType>IMAGE</contentType>
      <valueProcess>%aditoprj%/entity/Offer_entity/entityfields/image/valueProcess.js</valueProcess>
    </entityField>
    <entityField>
      <name>HEADER</name>
      <title>Header text</title>
    </entityField>
    <entityField>
      <name>FOOTER</name>
      <title>Footer text</title>
    </entityField>
    <entityOutgoingField>
      <name>OfferOfferitem_dfo</name>
      <title>Offeritems</title>
      <fieldType>DEPENDENCY_OUT</fieldType>
      <description></description>
      <dependency>
        <name>dependency</name>
        <entityName>Offeritem_entity</entityName>
        <fieldName>OfferOfferItem_dfi</fieldName>
      </dependency>
      <children>
        <entityParameter>
          <name>OfferId_param</name>
          <code>%aditoprj%/entity/Offer_entity/entityfields/offerofferitem_dfo/children/offerid_param/code.js</code>
          <expose v="true" />
          <triggerRecalculation v="true" />
          <mandatory v="true" />
        </entityParameter>
        <entityParameter>
          <name>Currency_param</name>
          <code>%aditoprj%/entity/Offer_entity/entityfields/offerofferitem_dfo/children/currency_param/code.js</code>
          <expose v="true" />
          <triggerRecalculation v="true" />
        </entityParameter>
        <entityParameter>
          <name>RelationId_param</name>
          <code>%aditoprj%/entity/Offer_entity/entityfields/offerofferitem_dfo/children/relationid_param/code.js</code>
          <expose v="true" />
          <triggerRecalculation v="true" />
          <mandatory v="true" />
        </entityParameter>
        <entityParameter>
          <name>OfferStatus_param</name>
          <code>%aditoprj%/entity/Offer_entity/entityfields/offerofferitem_dfo/children/offerstatus_param/code.js</code>
          <expose v="true" />
          <triggerRecalculation v="true" />
          <mandatory v="true" />
        </entityParameter>
      </children>
    </entityOutgoingField>
    <entityActionField>
      <name>newOfferVersion</name>
      <fieldType>ACTION</fieldType>
      <title>New offer version</title>
      <onActionProcess>%aditoprj%/entity/Offer_entity/entityfields/newofferversion/onActionProcess.js</onActionProcess>
    </entityActionField>
    <entityField>
      <name>NET</name>
      <title>Total net</title>
      <state>READONLY</state>
    </entityField>
    <entityField>
      <name>TotalGross</name>
      <documentation>%aditoprj%/entity/Offer_entity/entityfields/totalgross/documentation.adoc</documentation>
      <title>Total gross</title>
      <state>READONLY</state>
      <valueProcess>%aditoprj%/entity/Offer_entity/entityfields/totalgross/valueProcess.js</valueProcess>
    </entityField>
    <entityParameter>
      <name>SalesprojectId_param</name>
      <expose v="true" />
      <triggerRecalculation v="true" />
      <mandatory v="false" />
      <description>PARAMETER</description>
    </entityParameter>
    <entityIncomingField>
      <name>SalesprojectOffer_dfi</name>
      <fieldType>DEPENDENCY_IN</fieldType>
      <recordContainer>db</recordContainer>
      <dependencies>
        <entityDependency>
          <name>208c1273-d438-4263-a466-a4490b5e319a</name>
          <entityName>Salesproject_entity</entityName>
          <fieldName>SalesprojectOffer_dfo</fieldName>
          <isOutgoing v="false" />
        </entityDependency>
      </dependencies>
    </entityIncomingField>
    <entityField>
      <name>LANGUAGE</name>
      <title>Language</title>
      <mandatory v="true" />
      <outgoingField></outgoingField>
      <possibleItemsProcess>%aditoprj%/entity/Offer_entity/entityfields/language/possibleItemsProcess.js</possibleItemsProcess>
    </entityField>
    <entityActionField>
      <name>newOffer</name>
      <fieldType>ACTION</fieldType>
      <title>Copy offer</title>
      <onActionProcess>%aditoprj%/entity/Offer_entity/entityfields/newoffer/onActionProcess.js</onActionProcess>
    </entityActionField>
    <entityField>
      <name>VERSNR</name>
      <documentation>%aditoprj%/entity/Offer_entity/entityfields/versnr/documentation.adoc</documentation>
      <title>Vers. no.</title>
      <state>READONLY</state>
      <valueProcess>%aditoprj%/entity/Offer_entity/entityfields/versnr/valueProcess.js</valueProcess>
    </entityField>
    <entityField>
      <name>OFFER_ID</name>
      <documentation>%aditoprj%/entity/Offer_entity/entityfields/offer_id/documentation.adoc</documentation>
    </entityField>
    <entityFieldGroup>
      <name>OfferCode_VersNr_fieldgroup</name>
      <valueProcess>%aditoprj%/entity/Offer_entity/entityfields/offercode_versnr_fieldgroup/valueProcess.js</valueProcess>
      <title>Offer number</title>
      <description>Offercode + VersNr</description>
      <state>READONLY</state>
      <fields>
        <element>OFFERCODE</element>
        <element>VERSNR</element>
      </fields>
    </entityFieldGroup>
    <entityFieldGroup>
      <name>Offer_OfferCode_VersNr_fieldgroup</name>
      <valueProcess>%aditoprj%/entity/Offer_entity/entityfields/offer_offercode_versnr_fieldgroup/valueProcess.js</valueProcess>
      <title>Offer number</title>
      <description>&amp;quot;Offer &amp;quot; + OfferCode + VersNr</description>
      <state>READONLY</state>
      <fields>
        <element>OFFERCODE</element>
        <element>VERSNR</element>
      </fields>
    </entityFieldGroup>
    <entityParameter>
      <name>RelationId_param</name>
      <expose v="true" />
      <triggerRecalculation v="true" />
      <mandatory v="false" />
      <description>PARAMETER</description>
    </entityParameter>
    <entityActionField>
      <name>offerReport</name>
      <fieldType>ACTION</fieldType>
      <title>Offer report</title>
      <onActionProcess>%aditoprj%/entity/Offer_entity/entityfields/offerreport/onActionProcess.js</onActionProcess>
    </entityActionField>
    <entityField>
      <name>RELATION_ORG_ID</name>
      <searchable v="false" />
    </entityField>
    <entityField>
      <name>RELATION_PERS_ID</name>
      <searchable v="false" />
    </entityField>
    <entityOutgoingField>
      <name>OfferRelation_dfo</name>
      <fieldType>DEPENDENCY_OUT</fieldType>
      <dependency>
        <name>dependency</name>
        <entityName>Relation_entity</entityName>
        <fieldName>OfferRelation_dfi</fieldName>
      </dependency>
    </entityOutgoingField>
    <entityOutgoingField>
      <name>OfferDocument_dfo</name>
      <title>Documents</title>
      <fieldType>DEPENDENCY_OUT</fieldType>
      <dependency>
        <name>dependency</name>
        <entityName>Document_entity</entityName>
        <fieldName>OfferDocument_dfi</fieldName>
      </dependency>
      <children>
        <entityParameter>
          <name>AssignmentName_param</name>
          <code>%aditoprj%/entity/Offer_entity/entityfields/offerdocument_dfo/children/assignmentname_param/code.js</code>
        </entityParameter>
        <entityParameter>
          <name>AssignmentRowId_param</name>
          <code>%aditoprj%/entity/Offer_entity/entityfields/offerdocument_dfo/children/assignmentrowid_param/code.js</code>
        </entityParameter>
        <entityParameter>
          <name>AssignmentTable_param</name>
          <code>%aditoprj%/entity/Offer_entity/entityfields/offerdocument_dfo/children/assignmenttable_param/code.js</code>
        </entityParameter>
      </children>
    </entityOutgoingField>
    <entityOutgoingField>
      <name>OfferMainDocuments_dfo</name>
      <fieldType>DEPENDENCY_OUT</fieldType>
      <dependency>
        <name>dependency</name>
        <entityName>Document_entity</entityName>
        <fieldName>OfferMainDocuments_dfi</fieldName>
      </dependency>
      <children>
        <entityParameter>
          <name>AssignmentName_param</name>
          <code>%aditoprj%/entity/Offer_entity/entityfields/offermaindocuments_dfo/children/assignmentname_param/code.js</code>
        </entityParameter>
        <entityParameter>
          <name>AssignmentRowId_param</name>
          <code>%aditoprj%/entity/Offer_entity/entityfields/offermaindocuments_dfo/children/assignmentrowid_param/code.js</code>
        </entityParameter>
        <entityParameter>
          <name>AssignmentTable_param</name>
          <code>%aditoprj%/entity/Offer_entity/entityfields/offermaindocuments_dfo/children/assignmenttable_param/code.js</code>
        </entityParameter>
        <entityParameter>
          <name>Keyword_param</name>
          <code>%aditoprj%/entity/Offer_entity/entityfields/offermaindocuments_dfo/children/keyword_param/code.js</code>
        </entityParameter>
      </children>
    </entityOutgoingField>
    <entityOutgoingField>
      <name>OfferSalesproject_dfo</name>
      <fieldType>DEPENDENCY_OUT</fieldType>
      <dependency>
        <name>dependency</name>
        <entityName>Salesproject_entity</entityName>
        <fieldName>#INCOMING</fieldName>
      </dependency>
    </entityOutgoingField>
    <entityField>
      <name>ADDRESS</name>
      <documentation>%aditoprj%/entity/Offer_entity/entityfields/address/documentation.adoc</documentation>
      <title>Address</title>
      <description></description>
      <contentType>LONG_TEXT</contentType>
    </entityField>
    <entityField>
      <name>ChosenAddress</name>
      <title>Choose address</title>
      <possibleItemsProcess>%aditoprj%/entity/Offer_entity/entityfields/chosenaddress/possibleItemsProcess.js</possibleItemsProcess>
      <onValueChange>%aditoprj%/entity/Offer_entity/entityfields/chosenaddress/onValueChange.js</onValueChange>
      <onValueChangeTypes>
        <element>MASK</element>
      </onValueChangeTypes>
    </entityField>
  </entityFields>
  <recordContainers>
    <dbRecordContainer>
      <name>db</name>
      <alias>Data_alias</alias>
      <maximumDbRows v="0" />
      <fromClauseProcess>%aditoprj%/entity/Offer_entity/recordcontainers/db/fromClauseProcess.js</fromClauseProcess>
      <conditionProcess>%aditoprj%/entity/Offer_entity/recordcontainers/db/conditionProcess.js</conditionProcess>
      <onDBDelete>%aditoprj%/entity/Offer_entity/recordcontainers/db/onDBDelete.js</onDBDelete>
      <linkInformation>
        <linkInformation>
          <name>19634909-a0a3-4fde-b875-e3b2b254e890</name>
          <tableName>OFFER</tableName>
          <primaryKey>OFFERID</primaryKey>
          <isUIDTable v="true" />
          <readonly v="false" />
        </linkInformation>
        <linkInformation>
          <name>1b7e5346-a8ce-4ef6-a227-a4557cba3294</name>
          <tableName>RELATION</tableName>
          <primaryKey>RELATIONID</primaryKey>
          <isUIDTable v="false" />
          <readonly v="true" />
        </linkInformation>
        <linkInformation>
          <name>9c8f49ae-399f-49e8-a18a-fb4b84a360d0</name>
          <tableName>ORG</tableName>
          <primaryKey>ORGID</primaryKey>
          <isUIDTable v="false" />
          <readonly v="true" />
        </linkInformation>
        <linkInformation>
          <name>35ac875d-66c4-43b0-9293-b034f45260c8</name>
          <tableName>PERS</tableName>
          <primaryKey>PERSID</primaryKey>
          <isUIDTable v="false" />
          <readonly v="true" />
        </linkInformation>
      </linkInformation>
      <recordFieldMappings>
        <dbRecordFieldMapping>
          <name>CURRENCY.value</name>
          <recordfield>OFFER.CURRENCY</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>DATE_EDIT.value</name>
          <recordfield>OFFER.DATE_EDIT</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>DATE_NEW.value</name>
          <recordfield>OFFER.DATE_NEW</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>FOOTER.value</name>
          <recordfield>OFFER.FOOTER</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>HEADER.value</name>
          <recordfield>OFFER.HEADER</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>LANGUAGE.value</name>
          <recordfield>OFFER.LANGUAGE</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>NET.value</name>
          <recordfield>OFFER.NET</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>OFFERCODE.value</name>
          <recordfield>OFFER.OFFERCODE</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>OFFERDATE.value</name>
          <recordfield>OFFER.OFFERDATE</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>OFFERID.value</name>
          <recordfield>OFFER.OFFERID</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>PROBABILITY.value</name>
          <recordfield>OFFER.PROBABILITY</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>SALESPROJECT_ID.value</name>
          <recordfield>OFFER.SALESPROJECT_ID</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>STATUS.value</name>
          <recordfield>OFFER.STATUS</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>USER_EDIT.value</name>
          <recordfield>OFFER.USER_EDIT</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>USER_NEW.value</name>
          <recordfield>OFFER.USER_NEW</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>VAT.value</name>
          <recordfield>OFFER.VAT</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>VERSNR.value</name>
          <recordfield>OFFER.VERSNR</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>RELATION_ID.value</name>
          <recordfield>OFFER.RELATION_ID</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>RELATION_ORG_ID.value</name>
          <recordfield>RELATION.ORG_ID</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>RELATION_PERS_ID.value</name>
          <recordfield>RELATION.PERS_ID</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>ADDRESS.value</name>
          <recordfield>OFFER.ADDRESS</recordfield>
        </dbRecordFieldMapping>
      </recordFieldMappings>
    </dbRecordContainer>
  </recordContainers>
</entity>