Difference between revisions of "Template:Semorg-invoice"

From SemanticOrganization
Jump to: navigation, search
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-invoice-category}}]]{{semorg-letter-header}}{{#semorg-detail:invoice
+
<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-invoice{{#if:{{{date|}}}||-template}}-category}}]]{{semorg-letter
  |heading={{int:semorg-invoice-displaytitle|{{FULLPAGENAME}}|{{#time:Y|{{{date|}}}}}}}
+
   |class=semorg-invoice
}}{{#semorg-true:{{{storno|}}}
 
   |<div class="alert alert-danger">{{int:semorg-invoice-storno-warning}}</div>
 
}}{{#semorg-table:invoice
 
 
   |recipient={{{recipient|}}}
 
   |recipient={{{recipient|}}}
  |issuer={{semorg-person-link|{{{issuer|}}}}}
+
   |date={{{date|}}}
   |date={{semorg-date|{{{date|}}}|long}}
+
   |subject={{int:semorg-invoice-subject-text|{{int:semorg-invoice-number|{{FULLPAGENAME}}}}}}
   |due-date={{semorg-date|{{{due-date|}}}|long}}
+
   |subject-sub={{#if:{{{period|}}}
  |payment-date={{semorg-date|{{{payment-date|}}}|long}}
+
     |{{int:semorg-invoice-period-text|{{{period|}}}}}
   |amount-net={{semorg-currency|{{formatnum:{{{amount-net|{{#ask:[[semorg-invoice-item-invoice::{{FULLPAGENAME}}]]
+
  }}
    |?semorg-invoice-item-amount-net
+
   |intro={{{intro|}}}
     |format=sum
+
   |body={{#if:{{{items|}}}
  }}}}}}}}}
+
    |<table class="table semorg-invoice-items">{{{items}}}{{semorg-invoice-items-sums}}</table>
  |amount-gross={{semorg-currency|{{formatnum:{{{amount-gross|{{#ask:[[semorg-invoice-item-invoice::{{FULLPAGENAME}}]]
+
  }}
    |?semorg-invoice-item-amount-gross
+
   |outro={{{outro|}}}
    |format=sum
+
  |footer={{int:semorg-invoice-footer|{{{issuer|}}}}}
  }}}}}}}}}
 
   |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
 
{{#semorg-set:invoice
 +
  |template-name={{{template-name|}}}
 
   |recipient={{{recipient|}}}
 
   |recipient={{{recipient|}}}
 
   |issuer={{{issuer|}}}
 
   |issuer={{{issuer|}}}
Line 38: Line 28:
 
   |year={{semorg-year|{{{date|}}}}}
 
   |year={{semorg-year|{{{date|}}}}}
 
   |payed={{#if:{{{payment-date|}}}|true|false}}
 
   |payed={{#if:{{{payment-date|}}}|true|false}}
}}{{#semorg-set:invoice
+
  |outro={{{outro|}}}
 +
  |period={{{period|}}}
 
   |amount-gross={{{amount-gross|{{#ask:[[semorg-invoice-item-invoice::{{FULLPAGENAME}}]]
 
   |amount-gross={{{amount-gross|{{#ask:[[semorg-invoice-item-invoice::{{FULLPAGENAME}}]]
 
     |?semorg-invoice-item-amount-gross
 
     |?semorg-invoice-item-amount-gross
Line 47: Line 38:
 
     |format=sum
 
     |format=sum
 
   }}}}}
 
   }}}}}
}}</includeonly>
+
}}<div class="d-print-none">{{#if:{{{date|}}}
 +
  |{{#semorg-detail:invoice
 +
    |heading={{int:semorg-invoice-displaytitle|{{FULLPAGENAME}}|{{#time:Y|{{{date|}}}}}}}
 +
  }}
 +
  |{{#semorg-detail:invoice-template
 +
    |heading={{{template-name|}}}
 +
  }}
 +
}}{{#semorg-true:{{{storno|}}}
 +
  |<div class="alert alert-danger">{{int:semorg-invoice-storno-warning}}</div>
 +
}}{{#semorg-table:invoice
 +
  |recipient={{semorg-person-link|{{{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|{{formatnum:{{#ask:[[semorg-invoice-item-invoice::{{FULLPAGENAME}}]]
 +
    |?semorg-invoice-item-amount-net
 +
    |format=sum
 +
  }}|R}}}}}}}}}
 +
  |amount-gross={{semorg-currency|{{formatnum:{{{amount-gross|{{formatnum:{{#ask:[[semorg-invoice-item-invoice::{{FULLPAGENAME}}]]
 +
    |?semorg-invoice-item-amount-gross
 +
    |format=sum
 +
  }}|R}}}}}}}}}
 +
  |description={{{description|}}}
 +
  |period={{{period|}}}
 +
  |department={{semorg-department-link|{{{department|}}}}}
 +
  |project={{#if:{{{project|}}}|[[{{{project|}}}]]}}
 +
  |storno={{{storno|}}}
 +
}}</div></includeonly>

Revision as of 12:27, 12 April 2023

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