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

[Projekt: Entwicklung - Neon][TicketNr.: 1035102][Darstellung der Zeiterfassung in Stunden]

parent 137fff18
No related branches found
No related tags found
No related merge requests found
......@@ -311,6 +311,7 @@
<description>the total hours of all time trackings related to the salesproject</description>
<state>READONLY</state>
<valueProcess>%aditoprj%/entity/Salesproject_entity/entityfields/timetrackingsum/valueProcess.js</valueProcess>
<displayValueProcess>%aditoprj%/entity/Salesproject_entity/entityfields/timetrackingsum/displayValueProcess.js</displayValueProcess>
</entityField>
<entityField>
<name>IMAGE</name>
......
import("system.vars");
import("system.result");
import("Timetracking_lib");
result.string(Timetracking.minutesToReadableHour(parseInt(vars.getString("$field.TIMETRACKINGSUM"))));
\ No newline at end of file
import("system.text");
import("system.translate");
import("system.result");
import("system.vars");
import("Timetracking_lib");
var hrs = Timetracking.getTotalTrackingTime(vars.getString("$field.SALESPROJECTID")) / 60;
hrs = text.formatDouble(hrs, "0.00");
result.string(hrs + " " + translate.text("hrs"));
\ No newline at end of file
import("system.vars");
import("system.result");
import("Timetracking_lib");
result.string(Timetracking.getTotalTrackingTime(vars.getString("$field.SALESPROJECTID")));
\ No newline at end of file
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