Skip to content
Snippets Groups Projects
Commit e30347e5 authored by Markus Escher's avatar Markus Escher
Browse files

#1034896

change Productprice Fieldorder
add VALID_FROM preset "today"
parent 8fd97ca1
No related branches found
No related tags found
No related merge requests found
......@@ -60,6 +60,7 @@
<contentType>DATE</contentType>
<resolution>DAY</resolution>
<mandatory v="true" />
<valueProcess>%aditoprj%/entity/Productprice_entity/entityfields/valid_from/valueProcess.js</valueProcess>
<onValidation>%aditoprj%/entity/Productprice_entity/entityfields/valid_from/onValidation.js</onValidation>
</entityField>
<entityField>
......
import("system.result");
import("system.vars");
import("system.neon");
import("Date_lib");
if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW && vars.get("$this.value") == "")
{
result.string(DateUtils.getTodayUTC());
}
else
result.string(vars.get("$this.value"));
\ No newline at end of file
......@@ -18,6 +18,10 @@
<name>e2afee84-173b-430a-8e29-1fd16d33dd69</name>
<entityField>PRICELIST</entityField>
</entityFieldLink>
<entityFieldLink>
<name>21c8be49-ee64-4d9c-a8b0-eb44575cfd01</name>
<entityField>PRODUCT_ID</entityField>
</entityFieldLink>
<entityFieldLink>
<name>fa21fa53-ac64-44b1-a5d1-8a1af16590fe</name>
<entityField>VALID_FROM</entityField>
......@@ -46,10 +50,6 @@
<name>ca06ebcb-abf5-4606-98cd-fd54dccce6d0</name>
<entityField>CURRENCY</entityField>
</entityFieldLink>
<entityFieldLink>
<name>21c8be49-ee64-4d9c-a8b0-eb44575cfd01</name>
<entityField>PRODUCT_ID</entityField>
</entityFieldLink>
</fields>
</genericViewTemplate>
</children>
......
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