Difference between revisions of "Template:Semorg-invoice"

From SemanticOrganization
Jump to: navigation, search
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-invoice{{#if:{{{date|}}}||-template}}-category}}]]{{semorg-letter-header}}<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|}}}
+
<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-invoice{{#if:{{{date|}}}||-template}}-category}}]]{{semorg-letter
  |{{int:semorg-invoice-period-text|{{{period|}}}}}
+
  |class=semorg-invoice
}}}}
+
  |recipient={{{recipient|}}}
{{#if:{{{items|}}}
+
  |date={{{date|}}}
   |<table class="table mb-5">{{#if:{{{description|}}}
+
  |subject={{int:semorg-invoice-subject-text|{{int:semorg-invoice-number|{{FULLPAGENAME}}}}}}
     |<tr><td class="semorg-invoice-description border-top-0" colspan=3>
+
  |subject-sub={{#if:{{{period|}}}
'''{{{description}}}'''</td></tr>
+
    |{{int:semorg-invoice-period-text|{{{period|}}}}}
  }}{{{items}}}{{semorg-invoice-items-sums}}</table>
+
  }}
}}{{semorg-letter-outro|{{{outro|}}}}}{{semorg-letter-footer}}</div></div></div>
+
  |intro={{{intro|}}}
 +
   |body={{#if:{{{items|}}}
 +
     |<table class="table semorg-invoice-items">{{{items}}}{{semorg-invoice-items-sums}}</table>
 +
  }}
 +
  |outro={{{outro|}}}
 +
  |footer={{int:semorg-invoice-footer|{{{issuer|}}}}}
 +
}}
 
{{#semorg-set:invoice
 
{{#semorg-set:invoice
 
   |template-name={{{template-name|}}}
 
   |template-name={{{template-name|}}}
Line 24: Line 30:
 
   |outro={{{outro|}}}
 
   |outro={{{outro|}}}
 
   |period={{{period|}}}
 
   |period={{{period|}}}
  |amount-gross={{{amount-gross|{{#ask:[[semorg-invoice-item-invoice::{{FULLPAGENAME}}]]
 
    |?semorg-invoice-item-amount-gross
 
    |format=sum
 
  }}}}}
 
  |amount-net={{{amount-net|{{#ask:[[semorg-invoice-item-invoice::{{FULLPAGENAME}}]]
 
    |?semorg-invoice-item-amount-net
 
    |format=sum
 
  }}}}}
 
 
}}<div class="d-print-none">{{#if:{{{date|}}}
 
}}<div class="d-print-none">{{#if:{{{date|}}}
 
   |{{#semorg-detail:invoice
 
   |{{#semorg-detail:invoice
Line 47: Line 45:
 
   |due-date={{semorg-date|{{{due-date|}}}|long}}
 
   |due-date={{semorg-date|{{{due-date|}}}|long}}
 
   |payment-date={{semorg-date|{{{payment-date|}}}|long}}
 
   |payment-date={{semorg-date|{{{payment-date|}}}|long}}
   |amount-net={{semorg-currency|{{formatnum:{{{amount-net|{{#ask:[[semorg-invoice-item-invoice::{{FULLPAGENAME}}]]
+
   |amount-net={{semorg-currency|{{formatnum:{{{amount-net|{{formatnum:{{#ask:[[semorg-invoice-item-invoice::{{FULLPAGENAME}}]]
 
     |?semorg-invoice-item-amount-net
 
     |?semorg-invoice-item-amount-net
 
     |format=sum
 
     |format=sum
   }}}}}}}}}
+
   }}|R}}}}}}}}}
   |amount-gross={{semorg-currency|{{formatnum:{{{amount-gross|{{#ask:[[semorg-invoice-item-invoice::{{FULLPAGENAME}}]]
+
   |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}}}}}}}}}
 
   |description={{{description|}}}
 
   |description={{{description|}}}
 
   |period={{{period|}}}
 
   |period={{{period|}}}
Line 60: Line 58:
 
   |project={{#if:{{{project|}}}|[[{{{project|}}}]]}}
 
   |project={{#if:{{{project|}}}|[[{{{project|}}}]]}}
 
   |storno={{{storno|}}}
 
   |storno={{{storno|}}}
}}</div></includeonly>
+
}}</div>{{#semorg-set:invoice
 +
  |amount-gross={{{amount-gross|{{#ask:[[semorg-invoice-item-invoice::{{FULLPAGENAME}}]]
 +
    |?semorg-invoice-item-amount-gross
 +
    |format=sum
 +
  }}}}}
 +
  |amount-net={{{amount-net|{{#ask:[[semorg-invoice-item-invoice::{{FULLPAGENAME}}]]
 +
    |?semorg-invoice-item-amount-net
 +
    |format=sum
 +
  }}}}}
 +
}}</includeonly>

Latest revision as of 14:14, 2 May 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