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

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

parent 4f90e991
No related branches found
No related tags found
No related merge requests found
...@@ -15,8 +15,9 @@ ...@@ -15,8 +15,9 @@
</entityField> </entityField>
<entityField> <entityField>
<name>MINUTES</name> <name>MINUTES</name>
<title>Minutes</title> <title>Time</title>
<mandatory v="true" /> <mandatory v="true" />
<displayValueProcess>%aditoprj%/entity/Timetracking_entity/entityfields/minutes/displayValueProcess.js</displayValueProcess>
</entityField> </entityField>
<entityField> <entityField>
<name>OBJECT_ID</name> <name>OBJECT_ID</name>
......
import("system.vars");
import("system.result");
import("Timetracking_lib");
result.string(Timetracking.minutesToReadableHour(parseInt(vars.getString("$field.MINUTES"))));
\ No newline at end of file
...@@ -2364,6 +2364,15 @@ ...@@ -2364,6 +2364,15 @@
<entry> <entry>
<key>Touchpoint</key> <key>Touchpoint</key>
</entry> </entry>
<entry>
<key>Combobox Value</key>
</entry>
<entry>
<key>relations</key>
</entry>
<entry>
<key>Time</key>
</entry>
</keyValueMap> </keyValueMap>
<font name="Dialog" style="0" size="11" /> <font name="Dialog" style="0" size="11" />
<sqlModels> <sqlModels>
......
...@@ -2734,6 +2734,13 @@ ...@@ -2734,6 +2734,13 @@
<key>Print Offer</key> <key>Print Offer</key>
<value>Angebot drucken</value> <value>Angebot drucken</value>
</entry> </entry>
<entry>
<key>relations</key>
</entry>
<entry>
<key>Time</key>
<value>Zeit</value>
</entry>
</keyValueMap> </keyValueMap>
<font name="Dialog" style="0" size="11" /> <font name="Dialog" style="0" size="11" />
</language> </language>
...@@ -2388,6 +2388,15 @@ ...@@ -2388,6 +2388,15 @@
<entry> <entry>
<key>Days inactive</key> <key>Days inactive</key>
</entry> </entry>
<entry>
<key>Combobox Value</key>
</entry>
<entry>
<key>relations</key>
</entry>
<entry>
<key>Time</key>
</entry>
</keyValueMap> </keyValueMap>
<font name="Dialog" style="0" size="11" /> <font name="Dialog" style="0" size="11" />
</language> </language>
...@@ -44,4 +44,19 @@ Timetracking.createNewTimeTracking = function (pRowId) ...@@ -44,4 +44,19 @@ Timetracking.createNewTimeTracking = function (pRowId)
}; };
neon.openContext("Timetracking", null, null, neon.OPERATINGSTATE_NEW, params); neon.openContext("Timetracking", null, null, neon.OPERATINGSTATE_NEW, params);
}
/*
* converts minutes tho hours and minuets. e.g. 105 to 1:45
*
* @param {integer} pMinutes req
*
* @return {String} Hours:Minutes
*/
Timetracking.minutesToReadableHour = function(pMinutes)
{
var timeHour = parseInt(pMinutes / 60);
var minutes = parseInt(pMinutes % 60);
return "" + timeHour + ":" + ((minutes <= 9) ? "0" + minutes : minutes);
} }
\ 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