Template: Semorg-invoice-item: Difference between revisions

From SemanticOrganization
Jump to: navigation, search
No edit summary
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>{{#semorg-subobject:invoice-item
<td class="border-top border-dark"></td>
  |invoice={{FULLPAGENAME}}
<td class="border-top border-dark">''Zwischensumme''</td>
  |description={{{description|}}}
<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-net={{{amount-net|0}}}
</tr>{{#arraymap:20,10
  |amount-gross={{formatnum:{{#expr:{{formatnum:{{{amount-net|0}}}|R}}*(1+({{{vat-rate|0}}}/100))}}}}
  |,
   |amount-vat={{formatnum:{{#expr:{{formatnum:{{{amount-net|0}}}|R}}*({{{vat-rate|0}}}/100)}}}}
  |xxx
  |vat-rate={{{vat-rate|}}}
   |{{#ifexpr:{{#ask:[[semorg-invoice-item-invoice::{{FULLPAGENAME}}]][[semorg-invoice-item-vat-rate::xxx]]|format=count}}>0
}}{{#semorg-sum:invoice-amount-net|{{formatnum:{{{amount-net|}}}|R}}}}{{#semorg-sum:invoice-amount-gross|{{#expr:{{formatnum:{{{amount-net|0}}}|R}}*(1+({{{vat-rate|0}}}/100))}}}}<tr class="semorg-invoice-item">
    |<tr>
<td>{{{description|}}}</td>
<td></td>
<td>{{semorg-currency|{{formatnum:{{formatnum:{{{amount-net|}}}|R}}}}}}</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>
<td class="border-top border-dark" colspan="2">'''Gesamtbetrag'''</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>

Latest revision as of 07:01, 14 November 2024

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