Difference between revisions of "Template:Semorg-salary-row"

From SemanticOrganization
Jump to: navigation, search
m (1 revision imported)
 
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
Line 10: Line 10:
 
   |semorg-salary-row-current
 
   |semorg-salary-row-current
 
   |semorg-salary-row-old
 
   |semorg-salary-row-old
}}">{{#if:{{{?employee|}}}
+
}}">{{#ifeq:{{FULLPAGENAME}}
   |<td>[[{{{?employee|}}}|{{#show:{{{?employee|}}}|?semorg-person-name}}]]</td>
+
   |{{{?employee|}}}
 +
  |
 +
  |<td>{{semorg-person-link|{{{?employee|}}}}}</td>
 
}}
 
}}
<td>{{{?type|}}}</td>
+
<td>[[{{{?target|}}}|{{int:semorg-value-salary-type-{{{?type|}}}}}]]</td>
<td>{{{?date|}}}</td>
+
<td>{{semorg-date|{{{?date|}}}}}</td>
<td>€ {{{?amount|}}}</td>
+
<td>{{#if:{{{?amount|}}}|€ {{{?amount|}}}}}</td>
 
<td>{{{?hours|}}}</td>
 
<td>{{{?hours|}}}</td>
<td>{{#replace:{{#expr:{{#replace:{{{?amount|}}}|,|.}}/(4.33*{{#replace:{{{?hours|}}}|,|.}}) round 2}}|.|,}}</td>
+
<td>{{#if:{{{?hourly-rate|}}}|{{{?hourly-rate}}}}}</td>
 
{{semorg-showedit
 
{{semorg-showedit
   |target={{{?form|}}}
+
   |target={{{?target|}}}
 
}}
 
}}
 
</tr>
 
</tr>
 
</includeonly>
 
</includeonly>

Revision as of 12:47, 28 May 2019

This page is part of the Semantic Organization extension.