Template: Semorg-invoice: Difference between revisions

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

Latest revision as of 07:14, 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-custom) and change the following system message to the name of the newly created page: MediaWiki:semorg-invoice-template