Template: Semorg-travel-expenses-row: Difference between revisions

From SemanticOrganization
Jump to: navigation, search
(Created page with "<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr> <td>{{{?target|}}}</td> <td>{{{?person|}}}</td> <td>{{{?allowance-night|}}}</td> <td>{{{?project|}}}</td> <td>{{{...")
 
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr>
<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr>
<td>{{{?target|}}}</td>  
<td data-sort-value="{{#titleparts:{{{target|}}}||-1}}" data-sort-type="number">{{#show:{{{person|}}}|?semorg-person-name}}<br>[[{{{target|}}}|{{#titleparts:{{{target|}}}||2}}]]</td>  
<td>{{{?person|}}}</td>
<td data-sort-value="{{{start|}}}">{{semorg-datetime|{{{start|}}}}}{{#if:{{{end|}}}
<td>{{{?allowance-night|}}}</td>
  |{{#ifeq:{{#time:Ymd|{{{start|}}}}}|{{#time:Ymd|{{{end}}}}}
<td>{{{?project|}}}</td>  
    |-{{#time:H:i|{{{end}}}}}
<td>{{{?date|}}}</td>
    |<br>-{{semorg-datetime|{{{end|}}}}}
<td>{{{?expenses|}}}</td>
  }}
<td>{{{?description|}}}</td>  
}}</td>  
<td>{{{?quarter|}}}</td>
<td>{{#if:{{{destination|}}}|{{{destination|}}} {{#if:{{{distance|}}}|({{{distance}}}km)}}<br>}}{{{description|}}}</td>  
<td>{{{?destination|}}}</td>
<td style="text-align:right">{{#ifeq:{{{allowances|}}}|0
<td>{{{?year|}}}</td>
  |
<td>{{{?means|}}}</td>
  |{{semorg-currency|{{formatnum:{{#expr:{{formatnum:{{{allowances|0}}}|R}} - {{#if:{{{allowance-night|}}}
<td>{{{?start-time|}}}</td>  
    |{{formatnum:{{{allowance-night|0}}}|R}}
<td>{{{?allowance-day|}}}</td>  
    |0
<td>{{{?end-time|}}}</td>
  }} }} }} }}
}}{{#if:{{{allowance-night|}}}
  |<br>N: {{semorg-currency|{{{allowance-night|}}}}}
}}</td>  
<td style="text-align:right">{{#ifeq:{{{expenses|}}}|0||{{semorg-currency|{{{expenses|}}}}}}}</td>  
<td style="text-align:right">{{semorg-currency|{{{total|}}}}}</td>  
{{semorg-showedit
{{semorg-showedit
   |target={{{?target|}}}
  |form={{int:semorg-travel-expenses-form}}
   |target={{{target|}}}
}}
}}
</tr></includeonly>
</tr></includeonly>

Latest revision as of 15:11, 22 April 2021

This page is part of the Semantic Organization extension.