Difference between revisions of "Template:Semorg-invoice"

From SemanticOrganization
Jump to: navigation, search
Line 1: Line 1:
<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{#semorg-set:invoice
+
<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-invoice-category}}]]{{#semorg-detail:invoice
 +
  |heading={{int:semorg-invoice-displaytitle|{{FULLPAGENAME}}|{{#time:Y|{{{date|}}}}}}}
 +
}}{{#semorg-true:{{{storno|}}}
 +
  |<div class="alert alert-danger">{{int:semorg-invoice-storno-warning}}</div>
 +
}}{{#semorg-table:invoice
 +
  |recipient={{{recipient|}}}
 +
  |issuer={{semorg-person-link|{{{issuer|}}}}}
 +
  |date={{semorg-date|{{{date|}}}|long}}
 +
  |due-date={{semorg-date|{{{due-date|}}}|long}}
 +
  |payment-date={{semorg-date|{{{payment-date|}}}|long}}
 +
  |amount-net={{semorg-currency|{{formatnum:{{{amount-net|{{#ask:[[semorg-invoice-item-invoice::{{FULLPAGENAME}}]]
 +
    |?semorg-invoice-item-amount-net
 +
    |format=sum
 +
  }}}}}}}}}
 +
  |amount-gross={{semorg-currency|{{formatnum:{{{amount-gross|{{#ask:[[semorg-invoice-item-invoice::{{FULLPAGENAME}}]]
 +
    |?semorg-invoice-item-amount-gross
 +
    |format=sum
 +
  }}}}}}}}}
 +
  |description={{{description|}}}
 +
  |department={{semorg-department-link|{{{department|}}}}}
 +
  |project={{#if:{{{project|}}}|[[{{{project|}}}]]}}
 +
  |storno={{{storno|}}}
 +
}}
 +
{{#if:{{{items|}}}
 +
  |<table class="table table-bordered table-sm">{{{items}}}</table>
 +
}}
 +
{{#semorg-set:invoice
 
   |recipient={{{recipient|}}}
 
   |recipient={{{recipient|}}}
 
   |issuer={{{issuer|}}}
 
   |issuer={{{issuer|}}}
Line 21: Line 47:
 
     |format=sum
 
     |format=sum
 
   }}}}}
 
   }}}}}
}}[[Category:{{int:semorg-invoice-category}}]]{{#semorg-detail:invoice
 
  |heading={{int:semorg-invoice-displaytitle|{{FULLPAGENAME}}|{{#time:Y|{{{date|}}}}}}}
 
}}{{#semorg-true:{{{storno|}}}
 
  |<div class="alert alert-danger">{{int:semorg-invoice-storno-warning}}</div>
 
}}
 
 
{{#semorg-table:invoice
 
  |recipient={{{recipient|}}}
 
  |issuer={{semorg-person-link|{{{issuer|}}}}}
 
  |date={{semorg-date|{{{date|}}}|long}}
 
  |due-date={{semorg-date|{{{due-date|}}}|long}}
 
  |payment-date={{semorg-date|{{{payment-date|}}}|long}}
 
  |amount-net={{semorg-currency|{{formatnum:{{{amount-net|{{#ask:[[semorg-invoice-item-invoice::{{FULLPAGENAME}}]]
 
    |?semorg-invoice-item-amount-net
 
    |format=sum
 
  }}}}}}}}}
 
  |amount-gross={{semorg-currency|{{formatnum:{{{amount-gross|{{#ask:[[semorg-invoice-item-invoice::{{FULLPAGENAME}}]]
 
    |?semorg-invoice-item-amount-gross
 
    |format=sum
 
  }}}}}}}}}
 
  |description={{{description|}}}
 
  |items={{{items|}}}
 
  |department={{semorg-department-link|{{{department|}}}}}
 
  |project={{#if:{{{project|}}}|[[{{{project|}}}]]}}
 
  |storno={{{storno|}}}
 
 
}}</includeonly>
 
}}</includeonly>

Revision as of 20:24, 1 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-custom) and change the following system message to the name of the newly created page: MediaWiki:semorg-invoice-template