Template: Semorg-invoice: Difference between revisions

From SemanticOrganization
Jump to: navigation, search
No edit summary
No edit summary
 
(12 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}}<div class="d-print-none">{{#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|}}}
   |recipient={{{recipient|}}}
   |<div class="alert alert-danger">{{int:semorg-invoice-storno-warning}}</div>
   |date={{{date|}}}
}}{{#semorg-table:invoice
   |subject={{int:semorg-invoice-subject-text|{{int:semorg-invoice-number|{{FULLPAGENAME}}}}}}
   |recipient={{semorg-person-link|{{{recipient|}}}}}
  |subject-sub={{#if:{{{period|}}}
  |issuer={{semorg-person-link|{{{issuer|}}}}}
    |{{int:semorg-invoice-period-text|{{{period|}}}}}
   |date={{semorg-date|{{{date|}}}|long}}
  }}
   |due-date={{semorg-date|{{{due-date|}}}|long}}
  |intro={{{intro|}}}
  |payment-date={{semorg-date|{{{payment-date|}}}|long}}
   |body=<table class="table semorg-invoice-items">{{{items}}}{{semorg-invoice-items-sums}}</table>
  |amount-net={{semorg-currency|{{formatnum:{{{amount-net|{{#ask:[[semorg-invoice-item-invoice::{{FULLPAGENAME}}]]
  |outro={{{outro|}}}
    |?semorg-invoice-item-amount-net
  |footer={{int:semorg-invoice-footer|{{{issuer|}}}}}
    |format=sum
}}
  }}}}}}}}}
  |amount-gross={{semorg-currency|{{formatnum:{{{amount-gross|{{#ask:[[semorg-invoice-item-invoice::{{FULLPAGENAME}}]]
    |?semorg-invoice-item-amount-gross
    |format=sum
  }}}}}}}}}
  |description={{{description|}}}
  |period={{{period|}}}
  |department={{semorg-department-link|{{{department|}}}}}
  |project={{#if:{{{project|}}}|[[{{{project|}}}]]}}
  |storno={{{storno|}}}
}}</div><div class="d-none d-print-block container-fluid"><div class="row"><div class="col">{{semorg-letter-recipient|{{{recipient|}}}}}{{semorg-letter-date|{{{date|}}}}}{{semorg-letter-subject|{{int:semorg-invoice-subject-text|{{int:semorg-invoice-number|{{FULLPAGENAME}}}}}}|{{#if:{{{period|}}}
  |{{int:semorg-invoice-period-text|{{{period|}}}}}
}}}}
{{#if:{{{items|}}}
   |<table class="table mb-5">{{#if:{{{description|}}}
    |<tr><td class="semorg-invoice-description border-top-0" colspan=3>
'''{{{description}}}'''</td></tr>
  }}{{{items}}}{{semorg-invoice-items-sums}}</table>
}}{{semorg-letter-outro|{{{outro|}}}}}{{semorg-letter-footer}}</div></div></div>
{{#semorg-set:invoice
{{#semorg-set:invoice
  |template-name={{{template-name|}}}
   |recipient={{{recipient|}}}
   |recipient={{{recipient|}}}
   |issuer={{{issuer|}}}
   |issuer={{{issuer|}}}
Line 46: Line 28:
   |outro={{{outro|}}}
   |outro={{{outro|}}}
   |period={{{period|}}}
   |period={{{period|}}}
   |amount-gross={{{amount-gross|{{#ask:[[semorg-invoice-item-invoice::{{FULLPAGENAME}}]]
}}<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
     |?semorg-invoice-item-amount-gross
     |format=sum
     |format=sum
   }}}}}
   }}|R}}}}}}}}}
   |amount-net={{{amount-net|{{#ask:[[semorg-invoice-item-invoice::{{FULLPAGENAME}}]]
  |description={{{description|}}}
    |?semorg-invoice-item-amount-net
  |period={{{period|}}}
    |format=sum
  |department={{semorg-department-link|{{{department|}}}}}
  }}}}}
  |project={{semorg-project-link|{{{project|}}}}}
  |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