Template: Semorg-salary-row: Difference between revisions

From SemanticOrganization
Jump to: navigation, search
m (1 revision imported)
 
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>{{semorg-bundle}}</noinclude><includeonly>
<noinclude>{{semorg-bundle}}</noinclude><includeonly>
<tr class="semorg-salary-row {{#ifeq:{{{?form|}}}
<tr class="semorg-salary-row {{#ifeq:{{{target|}}}
   |{{#ask:[[semorg-salary-employee::{{{?employee|}}}]]
   |{{#ask:[[semorg-salary-employee::{{{employee|}}}]]
     |limit=1
     |limit=1
     |sort=semorg-salary-date
     |sort=semorg-salary-start-date
     |order=desc
     |order=desc
     |link=none
     |link=none
Line 10: Line 10:
   |semorg-salary-row-current
   |semorg-salary-row-current
   |semorg-salary-row-old
   |semorg-salary-row-old
}}">{{#if:{{{?employee|}}}
}}">{{#ifeq:{{PAGENAME}}
   |<td>[[{{{?employee|}}}|{{#show:{{{?employee|}}}|?semorg-person-name}}]]</td>
   |{{PAGENAME:{{{employee|}}}}}
  |
  |<td>{{semorg-person-link|{{{employee|}}}}}</td>
}}
}}
<td>{{{?type|}}}</td>
<td>[[{{{target|}}}|{{int:semorg-value-salary-type-{{{type|}}}}}]]<div class="semorg-list-row-details">{{{note|}}}</div></td>
<td>{{{?date|}}}</td>
<td>{{semorg-date|{{{start-date|}}}}}</td>
<td>{{{?amount|}}}</td>
<td style="text-align:right">{{semorg-currency|{{{amount|}}}}}</td>
<td>{{{?hours|}}}</td>
<td style="text-align:right">{{{hours|}}}</td>
<td>€ {{#replace:{{#expr:{{#replace:{{{?amount|}}}|,|.}}/(4.33*{{#replace:{{{?hours|}}}|,|.}}) round 2}}|.|,}}</td>
<td style="text-align:right">{{semorg-currency|{{{hourly-rate}}}}}</td>
{{semorg-showedit
{{semorg-showedit
   |target={{{?form|}}}
  |form={{int:semorg-salary-form}}
   |target={{{target|}}}
}}
}}
</tr>
</tr>
</includeonly>
</includeonly>

Latest revision as of 15:06, 22 April 2021

This page is part of the Semantic Organization extension.