Skip to content
Snippets Groups Projects
Commit 20dc61db authored by Johannes Hörmann's avatar Johannes Hörmann
Browse files

salesproject fixes

parent ca2795c0
No related branches found
No related tags found
No related merge requests found
Showing
with 37 additions and 35 deletions
......@@ -125,9 +125,11 @@
<entityField>
<name>RELATIONSHIP</name>
<title>Relationship</title>
<description>Overrules RELATION_RELATIONSHIP</description>
<description>Overrules RELATION_RELATIONSHIP
TODO: intuitive möglichkeit, auf dend Stand aus Relation zurückzusetzen... aktuell im edit mode auf leeres Feld, dann wird das aus relation angezeigt</description>
<contentType>NUMBER</contentType>
<onValueChange>%aditoprj%/entity/SalesprojectMember_entity/entityfields/relationship/onValueChange.js</onValueChange>
<displayValueProcess>%aditoprj%/entity/SalesprojectMember_entity/entityfields/relationship/displayValueProcess.js</displayValueProcess>
<onValueChangeTypes>
<element>MASK</element>
<element>PROCESS</element>
......@@ -139,15 +141,6 @@
<description>TODO: Beziehung zu der Relation 1024846 (z.B. per Ampelsystem)</description>
<contentType>NUMBER</contentType>
</entityField>
<entityFieldGroup>
<name>resultingRelation_fieldGroup</name>
<valueProcess>%aditoprj%/entity/SalesprojectMember_entity/entityfields/resultingrelation_fieldgroup/valueProcess.js</valueProcess>
<title>Relationship</title>
<description>FIELDGROUP</description>
<fields>
<element>RELATIONSHIP</element>
</fields>
</entityFieldGroup>
<entityOutgoingField>
<name>PersLookup_dfo</name>
<fieldType>DEPENDENCY_OUT</fieldType>
......
import("system.logging");
import("system.result");
import("system.vars");
var localRelationship = vars.get("$field.RELATIONSHIP");
if (localRelationship)
{
result.string("loc" + alRelationship);
result.string(localRelationship);
}
else
{
result.string("rem" + vars.get("$field.RELATION_RELATIONSHIP"));
result.string(vars.get("$field.RELATION_RELATIONSHIP"));
}
import("system.vars");
import("system.logging");
logging.log(vars.get("$field.RELATIONSHIP"))
\ No newline at end of file
......@@ -115,6 +115,8 @@
<entityField>
<name>VOLUME</name>
<title>Volume</title>
<description>The displayValue from the recoord container adds T € (translated)</description>
<contentTypeProcess>%aditoprj%/entity/Salesproject_entity/entityfields/volume/contentTypeProcess.js</contentTypeProcess>
</entityField>
<entityOutgoingField>
<name>SalesprojectOrg_dfo</name>
......@@ -130,15 +132,6 @@
<title>Probability</title>
<possibleItemsProcess>%aditoprj%/entity/Salesproject_entity/entityfields/probability/possibleItemsProcess.js</possibleItemsProcess>
</entityField>
<entityFieldGroup>
<name>VOLUME_DISPLAY_fieldGroup</name>
<valueProcess>%aditoprj%/entity/Salesproject_entity/entityfields/volume_display_fieldgroup/valueProcess.js</valueProcess>
<title>Volume</title>
<description>FIELDGROUP</description>
<fields>
<element>VOLUME</element>
</fields>
</entityFieldGroup>
<entityOutgoingField>
<name>SalesprojectSource_dfo</name>
<title>Source</title>
......@@ -411,6 +404,10 @@
<name>RELATION_ID.displayValue</name>
<recordfield>ORG.NAME</recordfield>
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>VOLUME.displayValue</name>
<expression>%aditoprj%/entity/Salesproject_entity/recordcontainers/db/recordfieldmappings/volume.displayvalue/expression.js</expression>
</dbRecordFieldMapping>
</recordFieldMappings>
</dbRecordContainer>
</recordContainers>
......
import("system.result");
import("system.vars");
import("system.neon");
var recordState = vars.get("$sys.recordstate");
if (recordState == neon.OPERATINGSTATE_EDIT || recordState == neon.OPERATINGSTATE_NEW)
{
result.string("NUMBER");
}
else
{
result.string("TEXT");
}
\ No newline at end of file
import("system.result");
import("system.vars");
import("system.translate");
result.string(vars.get("$field.VOLUME") + " " + translate.text("${THOUSAND_SHORT}") + " " + translate.text("${EURO_SIGN}"));
\ No newline at end of file
import("system.translate");
import("system.result");
import("Sql_lib");
var maskingUtils = new SqlMaskingUtils();
result.string(maskingUtils.concat(["char(SALESPROJECT.VOLUME)", "'" + translate.text("${THOUSAND_SHORT}") + "'", "'" + translate.text("${EURO_SIGN}") + "'"], " ", true))
\ No newline at end of file
......@@ -21,8 +21,8 @@
<entityField>#ENTITY</entityField>
<fields>
<entityFieldLink>
<name>c5957f1f-253f-4941-b7db-8b6b438f2ad7</name>
<entityField>resultingRelation_fieldGroup</entityField>
<name>9eafb9df-5b00-4e1f-aacf-04c62cfaddf0</name>
<entityField>RELATIONSHIP</entityField>
</entityFieldLink>
</fields>
</genericViewTemplate>
......
......@@ -45,8 +45,8 @@
<entityField>PROBABILITY</entityField>
</entityFieldLink>
<entityFieldLink>
<name>fbd92799-b2e9-40e9-8700-f95765befa55</name>
<entityField>VOLUME_DISPLAY_fieldGroup</entityField>
<name>950d21a3-c0f9-4df5-9810-fa027a6fdb4a</name>
<entityField>VOLUME</entityField>
</entityFieldLink>
<entityFieldLink>
<name>774ab565-a5e0-4b31-a77a-39143534f9a8</name>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment