Difference between revisions of "Template:Semorg-invoice-item"

From SemanticOrganization
Jump to: navigation, search
Line 1: Line 1:
<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{#semorg-subobject:invoice-item  
+
<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr>
  |invoice={{FULLPAGENAME}}
+
<td class="border-top border-dark"></td>
  |description={{{description|}}}  
+
<td class="border-top border-dark">''Zwischensumme''</td>
   |amount-net={{{amount-net|0}}}
+
<td class="border-top border-dark" style="text-align:right">''{{semorg-currency|{{#ask:[[semorg-invoice-item-invoice::{{FULLPAGENAME}}]]|?semorg-invoice-item-amount-net|format=sum}}}}''</td>
   |amount-gross={{#expr:{{{amount-net|0}}}*(1+({{{vat-rate|0}}}/100))}}
+
</tr>{{#arraymap:20,10
  |amount-vat={{#expr:{{{amount-net|0}}}*({{{vat-rate|0}}}/100)}}
+
   |,
   |vat-rate={{{vat-rate|}}}
+
  |xxx
 +
   |{{#ifexpr:{{#ask:[[semorg-invoice-item-invoice::{{FULLPAGENAME}}]][[semorg-invoice-item-vat-rate::xxx]]|format=count}}>0
 +
    |<tr>
 +
<td></td>
 +
<td>USt (xxx%)</td>
 +
<td style="text-align:right">{{semorg-currency|{{#ask:[[semorg-invoice-item-invoice::{{FULLPAGENAME}}]][[semorg-invoice-item-vat-rate::xxx]]|?semorg-invoice-item-amount-vat|format=sum}}}}</td>
 +
</tr>
 +
  }}
 +
   |
 
}}<tr>
 
}}<tr>
<td colspan=2>{{{description|}}}</td>
+
<td class="border-top border-dark" colspan="2">'''Gesamtbetrag'''</td>
<td style="text-align:right">{{semorg-currency|{{{amount-net|}}}}}</td>
+
<td class="border-top border-dark" style="text-align:right">'''{{semorg-currency|{{#ask:[[semorg-invoice-item-invoice::{{FULLPAGENAME}}]]|?semorg-invoice-item-amount-gross|format=sum}}}}'''</td>
 
</tr></includeonly>
 
</tr></includeonly>

Revision as of 14:24, 7 February 2021

This page is part of the Semantic Organization extension.

If you want to customize this template you can copy its contents to another page (use for example Template:Semorg-invoice-item-custom) and change the following system message to the name of the newly created page: MediaWiki:semorg-invoice-item-template