diff --git a/entity/Offeritem_entity/Offeritem_entity.aod b/entity/Offeritem_entity/Offeritem_entity.aod index b5231edb5dea3f93aa70ef3feb39d734b70566c4..8b0810ae31606644b878339f558c8027f56aea8e 100644 --- a/entity/Offeritem_entity/Offeritem_entity.aod +++ b/entity/Offeritem_entity/Offeritem_entity.aod @@ -65,6 +65,7 @@ <contentType>NUMBER</contentType> <outputFormat>#,##0.00</outputFormat> <inputFormat>#,##0.00</inputFormat> + <displayValueProcess>%aditoprj%/entity/Offeritem_entity/entityfields/price/displayValueProcess.js</displayValueProcess> </entityField> <entityField> <name>PRODUCT_ID</name> @@ -113,6 +114,7 @@ <outputFormat>#,##0.00</outputFormat> <inputFormat>#,##0.00</inputFormat> <state>READONLY</state> + <displayValueProcess>%aditoprj%/entity/Offeritem_entity/entityfields/vat/displayValueProcess.js</displayValueProcess> </entityField> <entityParameter> <name>OfferId_param</name> @@ -142,6 +144,7 @@ <inputFormat>#,##0.00</inputFormat> <state>READONLY</state> <valueProcess>%aditoprj%/entity/Offeritem_entity/entityfields/totalprice/valueProcess.js</valueProcess> + <displayValueProcess>%aditoprj%/entity/Offeritem_entity/entityfields/totalprice/displayValueProcess.js</displayValueProcess> </entityField> <entityField> <name>IMAGE</name> diff --git a/entity/Offeritem_entity/entityfields/price/displayValueProcess.js b/entity/Offeritem_entity/entityfields/price/displayValueProcess.js new file mode 100644 index 0000000000000000000000000000000000000000..f9efef77b57bed78b2a0f2694905aed7cf5957f0 --- /dev/null +++ b/entity/Offeritem_entity/entityfields/price/displayValueProcess.js @@ -0,0 +1,6 @@ +import("Util_lib"); +import("system.vars"); +import("system.translate"); +import("system.result"); + +result.string(NumberUtils.formatWithCurrency(vars.get("$this.value"), translate.text("#,##0.00"), vars.get("$param.Currency_param"))); \ No newline at end of file diff --git a/entity/Offeritem_entity/entityfields/totalprice/displayValueProcess.js b/entity/Offeritem_entity/entityfields/totalprice/displayValueProcess.js new file mode 100644 index 0000000000000000000000000000000000000000..f9efef77b57bed78b2a0f2694905aed7cf5957f0 --- /dev/null +++ b/entity/Offeritem_entity/entityfields/totalprice/displayValueProcess.js @@ -0,0 +1,6 @@ +import("Util_lib"); +import("system.vars"); +import("system.translate"); +import("system.result"); + +result.string(NumberUtils.formatWithCurrency(vars.get("$this.value"), translate.text("#,##0.00"), vars.get("$param.Currency_param"))); \ No newline at end of file diff --git a/entity/Offeritem_entity/entityfields/vat/displayValueProcess.js b/entity/Offeritem_entity/entityfields/vat/displayValueProcess.js new file mode 100644 index 0000000000000000000000000000000000000000..f9efef77b57bed78b2a0f2694905aed7cf5957f0 --- /dev/null +++ b/entity/Offeritem_entity/entityfields/vat/displayValueProcess.js @@ -0,0 +1,6 @@ +import("Util_lib"); +import("system.vars"); +import("system.translate"); +import("system.result"); + +result.string(NumberUtils.formatWithCurrency(vars.get("$this.value"), translate.text("#,##0.00"), vars.get("$param.Currency_param"))); \ No newline at end of file diff --git a/entity/Orderitem_entity/Orderitem_entity.aod b/entity/Orderitem_entity/Orderitem_entity.aod index eaa4cda062d59777cbdd454cd993891afc42b098..62b8be3a9d8be5fab185c6cbb109f223c8fcfa4e 100644 --- a/entity/Orderitem_entity/Orderitem_entity.aod +++ b/entity/Orderitem_entity/Orderitem_entity.aod @@ -17,6 +17,8 @@ <entityField> <name>DISCOUNT</name> <title>Discount</title> + <contentType>NUMBER</contentType> + <outputFormat>#,##0.00</outputFormat> </entityField> <entityField> <name>GROUPCODEID</name> @@ -56,6 +58,10 @@ <entityField> <name>PRICE</name> <title>Unit price</title> + <contentType>NUMBER</contentType> + <outputFormat>#,##0.00</outputFormat> + <inputFormat>#,##0.00</inputFormat> + <displayValueProcess>%aditoprj%/entity/Orderitem_entity/entityfields/price/displayValueProcess.js</displayValueProcess> </entityField> <entityField> <name>PRODUCT_ID</name> @@ -72,6 +78,8 @@ <name>QUANTITY</name> <documentation>%aditoprj%/entity/Orderitem_entity/entityfields/quantity/documentation.adoc</documentation> <title>Quantity</title> + <contentType>NUMBER</contentType> + <outputFormat>#</outputFormat> <valueProcess>%aditoprj%/entity/Orderitem_entity/entityfields/quantity/valueProcess.js</valueProcess> <onValueChange>%aditoprj%/entity/Orderitem_entity/entityfields/quantity/onValueChange.js</onValueChange> <onValueChangeTypes> @@ -88,7 +96,11 @@ <entityField> <name>VAT</name> <title>VAT in %</title> + <contentType>NUMBER</contentType> + <outputFormat>#,##0.00</outputFormat> + <inputFormat>#,##0.00</inputFormat> <state>AUTO</state> + <displayValueProcess>%aditoprj%/entity/Orderitem_entity/entityfields/vat/displayValueProcess.js</displayValueProcess> </entityField> <entityParameter> <name>OrderId_param</name> @@ -118,6 +130,7 @@ <inputFormat>#,##0.00</inputFormat> <state>READONLY</state> <valueProcess>%aditoprj%/entity/Orderitem_entity/entityfields/totalprice/valueProcess.js</valueProcess> + <displayValueProcess>%aditoprj%/entity/Orderitem_entity/entityfields/totalprice/displayValueProcess.js</displayValueProcess> <onValidation></onValidation> </entityField> <entityField> diff --git a/entity/Orderitem_entity/entityfields/price/displayValueProcess.js b/entity/Orderitem_entity/entityfields/price/displayValueProcess.js new file mode 100644 index 0000000000000000000000000000000000000000..f9efef77b57bed78b2a0f2694905aed7cf5957f0 --- /dev/null +++ b/entity/Orderitem_entity/entityfields/price/displayValueProcess.js @@ -0,0 +1,6 @@ +import("Util_lib"); +import("system.vars"); +import("system.translate"); +import("system.result"); + +result.string(NumberUtils.formatWithCurrency(vars.get("$this.value"), translate.text("#,##0.00"), vars.get("$param.Currency_param"))); \ No newline at end of file diff --git a/entity/Orderitem_entity/entityfields/totalprice/displayValueProcess.js b/entity/Orderitem_entity/entityfields/totalprice/displayValueProcess.js new file mode 100644 index 0000000000000000000000000000000000000000..f9efef77b57bed78b2a0f2694905aed7cf5957f0 --- /dev/null +++ b/entity/Orderitem_entity/entityfields/totalprice/displayValueProcess.js @@ -0,0 +1,6 @@ +import("Util_lib"); +import("system.vars"); +import("system.translate"); +import("system.result"); + +result.string(NumberUtils.formatWithCurrency(vars.get("$this.value"), translate.text("#,##0.00"), vars.get("$param.Currency_param"))); \ No newline at end of file diff --git a/entity/Orderitem_entity/entityfields/vat/displayValueProcess.js b/entity/Orderitem_entity/entityfields/vat/displayValueProcess.js new file mode 100644 index 0000000000000000000000000000000000000000..f9efef77b57bed78b2a0f2694905aed7cf5957f0 --- /dev/null +++ b/entity/Orderitem_entity/entityfields/vat/displayValueProcess.js @@ -0,0 +1,6 @@ +import("Util_lib"); +import("system.vars"); +import("system.translate"); +import("system.result"); + +result.string(NumberUtils.formatWithCurrency(vars.get("$this.value"), translate.text("#,##0.00"), vars.get("$param.Currency_param"))); \ No newline at end of file