diff --git a/entity/Salesproject_entity/Salesproject_entity.aod b/entity/Salesproject_entity/Salesproject_entity.aod index 2ad5427c8433fcc705b0a7fdfb5b47b3e7223213..ae3e8887b5ce065bb330ec770bfd9b08a14ff89a 100644 --- a/entity/Salesproject_entity/Salesproject_entity.aod +++ b/entity/Salesproject_entity/Salesproject_entity.aod @@ -85,8 +85,9 @@ <name>VOLUME</name> <title>Volume</title> <description>The displayValue from the recoord container adds T € (translated)</description> - <displayValueProcess>%aditoprj%/entity/Salesproject_entity/entityfields/volume/displayValueProcess.js</displayValueProcess> - <onValidation>%aditoprj%/entity/Salesproject_entity/entityfields/volume/onValidation.js</onValidation> + <contentType>NUMBER</contentType> + <outputFormat>0</outputFormat> + <titleProcess>%aditoprj%/entity/Salesproject_entity/entityfields/volume/titleProcess.js</titleProcess> </entityField> <entityConsumer> <name>Organisations</name> diff --git a/entity/Salesproject_entity/entityfields/volume/displayValueProcess.js b/entity/Salesproject_entity/entityfields/volume/displayValueProcess.js deleted file mode 100644 index 55d8076a7378a810484d3ce8390ff36034d4dba4..0000000000000000000000000000000000000000 --- a/entity/Salesproject_entity/entityfields/volume/displayValueProcess.js +++ /dev/null @@ -1,6 +0,0 @@ -import("system.vars"); -import("system.translate"); -import("system.result"); - -var volume = vars.get("$field.VOLUME"); -result.string(parseInt(volume) + " " + translate.text("${THOUSAND_SHORT}") + " " + translate.text("${EURO_SIGN}")) \ No newline at end of file diff --git a/entity/Salesproject_entity/entityfields/volume/titleProcess.js b/entity/Salesproject_entity/entityfields/volume/titleProcess.js new file mode 100644 index 0000000000000000000000000000000000000000..1a6ace2c3d8c008ae506a1c6b9f615e6d945777a --- /dev/null +++ b/entity/Salesproject_entity/entityfields/volume/titleProcess.js @@ -0,0 +1,4 @@ +import("system.result"); +import("system.translate"); + +result.string(translate.text("Volume") + " (" + translate.text("${THOUSAND_SHORT}") + " " + translate.text("${EURO_SIGN}") + ")"); \ No newline at end of file