Template: Semorg-expense-report: Difference between revisions

From SemanticOrganization
Jump to: navigation, search
No edit summary
No edit summary
 
(9 intermediate revisions by the same user not shown)
Line 5: Line 5:
   |quarter={{{quarter|}}}  
   |quarter={{{quarter|}}}  
   |payment-date={{{payment-date|}}}  
   |payment-date={{{payment-date|}}}  
  |payed={{#if:{{{payment-date|}}}|true|false}}
   |year={{{year|}}}
   |year={{{year|}}}
}}{{{expenses|}}}{{#semorg-detail:expense-report
}}{{{expenses|}}}{{#semorg-detail:expense-report
Line 11: Line 12:


{{#semorg-table:expense-report  
{{#semorg-table:expense-report  
  |quarter={{#if:{{{quarter|}}}|{{int:semorg-quarter|{{{year|}}}|{{{quarter|}}}}}}}
  |month={{#if:{{{month|}}}|{{int:semorg-month|{{{year|}}}|{{{month|}}}}}}}
   |person={{semorg-person-link|{{{person|}}}}}
   |person={{semorg-person-link|{{{person|}}}}}
   |date={{semorg-date|{{{date|}}}|long}}
   |date={{semorg-date|{{{date|}}}|long}}
   |month={{#if:{{{month|}}}|{{int:semorg-month|{{{year|}}}|{{{month|}}}}}}}
   |payment-date={{semorg-date|{{{payment-date|}}}|long}}
  |quarter={{#if:{{{quarter|}}}|{{int:semorg-quarter|{{{year|}}}|{{{quarter|}}}}}}}
  |payment-date={{{payment-date|}}}
  |total=€ {{#ask:[[semorg-expense-expense-report::{{FULLPAGENAME}}]]
    |?semorg-expense-amount-gross
    |format=sum
    |default=0
  }}
}}
}}


{{#semorg-list:expense
{{#semorg-list:expense
   |query=[[semorg-expense-expense-report::{{FULLPAGENAME}}]]
   |query=[[semorg-expense-expense-report::{{FULLPAGENAME}}]]
  |sort=semorg-expense-date
   |category=-
   |category=-
   |sort=semorg-expense-date
   |limit=1000
   |csv=date,project,description,amount-gross,amount-net
   |csv=date,project,description,amount-gross,amount-net,vat,type
}}
  |sums=,,expense-amount-gross,expense-amount-net,expense-vat,
</includeonly>
}}{{semorg-printable
  |template=Semorg-expense-report-footer
  |class=semorg-expense-report-footer
}}</includeonly>

Latest revision as of 08:42, 21 October 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-expense-report-custom) and change the following system message to the name of the newly created page: MediaWiki:semorg-expense-report-template