Template:Invoice: Difference between revisions

From OpenCommons
Jump to navigation Jump to search
No edit summary
No edit summary
 
(17 intermediate revisions by the same user not shown)
Line 4: Line 4:
<pre>
<pre>
{{invoice
{{invoice
| company      = Company of the member company
| street      = Street of the member company
| city          = City of the member company
| state        = State of the member company
| zip          = Zip of the member company
| country      = Country of the member company
| type          = Type of membership
| type          = Type of membership
| quantity      = Quantity of membership
}}
}}
</pre>
</pre>
Line 33: Line 26:
|-
|-
|style="text-align: right"|[[Has date published::{{#time:j/m/y}}]]
|style="text-align: right"|[[Has date published::{{#time:j/m/y}}]]
|style="text-align: right"|[[Has number::{{#ask: [[Category:Invoice]] |sort=Has number |order=decending |limit=1 |?Has number |format=plainlist }}]] {{CURRENTHOUR}}
|style="text-align: right"|[[Has number::{{Increment invoice | number={{#ask: [[Category:Invoice]] |sort=Has number |order=descending |?Has number#= |mainlabel=-}} }}]]
|}
|}


Line 42: Line 35:
|BILL TO
|BILL TO
|-style="height:150px;vertical-align:top;"
|-style="height:150px;vertical-align:top;"
|style="width: 70%"|{{{company}}}</br>{{{street}}}</br>{{{city}}}, {{{state}}} {{{zip}}}</br>{{{country}}}
|style="width: 70%"|Attn: {{#show: User:{{REVISIONUSER}} |?Has full name }}</br>{{#show: User:{{REVISIONUSER}} |?Has inv company }}</br>{{#show: User:{{REVISIONUSER}} |?Has inv street }}</br>{{#show: User:{{REVISIONUSER}} |?Has inv city }}, {{#show: User:{{REVISIONUSER}} |?Has inv state }} {{#show: User:{{REVISIONUSER}} |?Has inv zip }}</br>{{#show: User:{{REVISIONUSER}} |?Has inv country}}  
|}
|}


Line 53: Line 46:
|style="width: 100px"|RATE
|style="width: 100px"|RATE
|style="width: 100px"|AMOUNT
|style="width: 100px"|AMOUNT
|- style="height:300px;vertical-align:top;"  
|- style="height:580px;vertical-align:top;"  
|{{{type}}}
|{{{type}}}
|style='text-align: right;'|{{{quantity}}}
|style='text-align: right;'|{{{quantity}}}
|style='text-align: right;'|{{#show: {{{type}}} |?Has payment }}
|style='text-align: right;'|$ {{#show: {{{type}}} |?Has payment }}
|style='text-align: right;'|{{#expr: {{{quantity}}} * {{{quantity}}} }} {{Display amount |quantity={{{quantity}}} }}
|style='text-align: right;'|$ {{Display amount |quantity=1 |amount={{#show: {{{type}}} |?Has payment#= }} }}
|}
|}



Latest revision as of 01:36, May 11, 2022

This is the "Person" template. It should be called in the following format:

{{invoice
| type          = Type of membership
}}

Edit the page to see the template text.