%{
}%
%TMPL:INCLUDE{"view"}%
%{
}%

%{
}%
%TMPL:DEF{"form"}%%TMPL:END%
%{
}%

%{
}%
%TMPL:DEF{"beforetext"}%<!-- --> 
<h1>[[%WEB%.%TOPIC%]]</h1>

%RENDERFORDISPLAY{exclude="TopicType|TopicTitle"}%

<noautolink>
%RENDERMETADATA{
  "effort" 
  topic="%BASEWEB%.%BASETOPIC%"
  fields="Date, From, To, Description"
  header="<div class='metaDataView timeTrackerView'>$n| *Pos* | *Date* | *From* | *To* | *Description* | *Hours* | *Charge*| *Tax*| $n"
  format="| $index | $Date | $From | $To | $Description |  $percntTMPL:P{\"hours\"}$percnt |  $percntTMPL:P{\"charge\"}$percnt |  $percntTMPL:P{\"tax\"}$percnt$actions |$n"
  footer="||||| %MAKETEXT{"Sum"}% |  $percntTMPL:P{\"sumabove\"}$percnt |  $percntTMPL:P{\"sumabove\"}$percnt |  $percntTMPL:P{\"sumabove\"}$percnt |
||||| %MAKETEXT{"Total"}% |||  <b>&euro;&nbsp;$percntCALC{\"$FORMAT(NUMBER, 2, $EVAL($T(R$ROW(-1):C$COLUMN())+$T(R$ROW(-1):C$COLUMN(-1))))\"}$percnt</b> |
  </div>"
  sort="Date"
  edittitle="%MAKETEXT{"Edit this effort"}%"
}%
</noautolink>

%NEWMETADATA{"effort" 
  buttontitle="%MAKETEXT{"Add effort"}%"
  title="%MAKETEXT{"Add a new effort"}%"
}%
%INCLUDE{"%SYSTEMWEB%/JSCalendarContribInline"}%

<style>
.timeTrackerView tbody tr td:nth-child(2) {
  white-space:nowrap;
}
.effort {
  margin:0;
  padding:0;
  border:0;
}
</style>

%TMPL:END%
%{
}%

%{
}%
%TMPL:DEF{"hours"}%%CALC{"$FORMAT(NUMBER, 2, $TIMEDIFF($TIME($T(R$ROW():C2) - $T(R$ROW():C3)),$TIME($T(R$ROW():C2) - $T(R$ROW():C4)),hour))"}%%TMPL:END%

%TMPL:DEF{"charge"}%%CALC{"$FORMAT(NUMBER, 2, $EVAL($T(R$ROW():C$COLUMN(-1))*%FORMFIELD{"Rate" default="%STDRATE%" alttext="%STDRATE%"}%))"}%%TMPL:END%

%TMPL:DEF{"tax"}%%CALC{"$FORMAT(NUMBER, 2, $EVAL($T(R$ROW():C$COLUMN(-1))*%FORMFIELD{"Tax" default="0" alttext="0}%/100))"}%%TMPL:END%

%TMPL:DEF{"sumabove"}%%CALC{"$FORMAT(NUMBER, 2, $SUM($ABOVE()))"}%%TMPL:END%
Topic revision: r1 - 2012-04-25, PeterThoeny
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding CBM Wiki? Send feedback
Imprint (in German)
Privacy Policy (in German)