Skip to content
Snippets Groups Projects
Commit 2cb84dd5 authored by c.wimmer's avatar c.wimmer
Browse files

[Projekt: Crowd-Development / Besuch vor Ort][TicketNr.: 1068785][[Bug]...

[Projekt: Crowd-Development / Besuch vor Ort][TicketNr.: 1068785][[Bug] Wochplan - Filter nach Jahr funktioniert nicht]
parent 7abfee48
No related branches found
No related tags found
No related merge requests found
......@@ -18,10 +18,9 @@
<entityField>
<name>YEAR</name>
<title>Year</title>
<contentType>TEXT</contentType>
<resolution>YEAR</resolution>
<outputFormat>yyyy</outputFormat>
<inputFormat>yyyy</inputFormat>
<contentType>NUMBER</contentType>
<outputFormat>##00</outputFormat>
<inputFormat>##00</inputFormat>
<groupable v="true" />
<mandatory v="true" />
<valueProcess>%aditoprj%/entity/VisitPlanEmployeeWeek_entity/entityfields/year/valueProcess.js</valueProcess>
......@@ -113,17 +112,17 @@
</entityProvider>
<entityConsumer>
<name>Employees</name>
<dependency>
<name>dependency</name>
<entityName>Employee_entity</entityName>
<fieldName>Employees</fieldName>
</dependency>
<children>
<entityParameter>
<name>OnlyActives_param</name>
<valueProcess>%aditoprj%/entity/VisitPlanEmployeeWeek_entity/entityfields/employees/children/onlyactives_param/valueProcess.js</valueProcess>
</entityParameter>
</children>
<dependency>
<name>dependency</name>
<entityName>Employee_entity</entityName>
<fieldName>Employees</fieldName>
</dependency>
</entityConsumer>
</entityFields>
<recordContainers>
......
......@@ -4,7 +4,7 @@ import("system.translate");
import("system.vars");
import("system.result");
var year = eMath.absInt(vars.get("$local.value")); //input
var currentYear = eMath.absInt(datetime.toDate(vars.get("$sys.date"), "yyyy"));//2019
var year = eMath.absInt(vars.get("$local.value"));
var currentYear = eMath.absInt(datetime.toDate(vars.get("$sys.date"), "yyyy"));
if(year < currentYear || year >= 10000 )
result.string(translate.text("Invalid year!"));
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