Invoice: Difference between revisions

From SemanticOrganization
Jump to: navigation, search
No edit summary
No edit summary
Line 77: Line 77:
}}{{semorg-generator-field
}}{{semorg-generator-field
|id=payed
|id=payed
|property-id=PD
|property-id=PA
|name=payed
|name=payed
|type=boo
|type=boo
}}
}}
}}
}}

Revision as of 14:13, 20 February 2019


Messages

"semorg-invoice-template": "semorg-invoice",
"semorg-invoice-category": "semorg-invoice",
"semorg-invoice-form": "semorg-invoice",
"semorg-form-invoice-create-title": "Create Ausgangsrechnung",
"semorg-form-invoice-edit-title": "Edit Ausgangsrechnung", 
"semorg-form-invoice-page-name": "Ausgangsrechnungen",

"semorg-form-invoice-template": "invoice",
"semorg-form-invoice-rows": "amount-gross, period, year, collection-date, template-name, description, department, project, payment-date, reminder-1-date, issuer, outro, payed, reminder-2-date, recipient, storno, date, number, amount-net, due-date, intro",
"semorg-list-invoice-headers": "invoice-amount-gross, invoice-period, invoice-year, invoice-collection-date, invoice-template-name, invoice-description, invoice-department, invoice-project, invoice-payment-date, invoice-reminder-1-date, invoice-issuer, invoice-outro, invoice-payed, invoice-reminder-2-date, invoice-recipient, invoice-storno, invoice-date, invoice-number, invoice-amount-net, invoice-due-date, invoice-intro",
"semorg-field-invoice-amount-gross-name": "", 
"semorg-field-invoice-amount-gross-parameters": "",
"semorg-field-invoice-amount-net-name": "", 
"semorg-field-invoice-amount-net-parameters": "",
"semorg-field-invoice-collection-date-name": "Date of Collection", 
"semorg-field-invoice-collection-date-parameters": "input type=datepicker|size=10",
"semorg-field-invoice-date-name": "", 
"semorg-field-invoice-date-parameters": "",
"semorg-field-invoice-department-name": "", 
"semorg-field-invoice-department-parameters": "",
"semorg-field-invoice-description-name": "", 
"semorg-field-invoice-description-parameters": "",
"semorg-field-invoice-due-date-name": "", 
"semorg-field-invoice-due-date-parameters": "",
"semorg-field-invoice-intro-name": "Intro Text", 
"semorg-field-invoice-intro-parameters": "",
"semorg-field-invoice-issuer-name": "", 
"semorg-field-invoice-issuer-parameters": "",
"semorg-field-invoice-number-name": "", 
"semorg-field-invoice-number-parameters": "",
"semorg-field-invoice-outro-name": "Outro", 
"semorg-field-invoice-outro-parameters": "",
"semorg-field-invoice-payed-name": "payed", 
"semorg-field-invoice-payed-parameters": "",
"semorg-field-invoice-payment-date-name": "", 
"semorg-field-invoice-payment-date-parameters": "",
"semorg-field-invoice-period-name": "Period", 
"semorg-field-invoice-period-parameters": "",
"semorg-field-invoice-project-name": "", 
"semorg-field-invoice-project-parameters": "",
"semorg-field-invoice-recipient-name": "", 
"semorg-field-invoice-recipient-parameters": "",
"semorg-field-invoice-reminder-1-date-name": "Date of First Reminder", 
"semorg-field-invoice-reminder-1-date-parameters": "input type=datepicker|size=10",
"semorg-field-invoice-reminder-2-date-name": "Date of Second Reminder", 
"semorg-field-invoice-reminder-2-date-parameters": "input type=datepicker|size=10",
"semorg-field-invoice-storno-name": "", 
"semorg-field-invoice-storno-parameters": "",
"semorg-field-invoice-template-name-name": "Template's Name", 
"semorg-field-invoice-template-name-parameters": "mandatory",
"semorg-field-invoice-year-name": "Year", 
"semorg-field-invoice-year-parameters": "",

Form

Form:Semorg-invoice

<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{{info
   |create title={{int:semorg-form-invoice-create-title}}
   |edit title={{int:semorg-form-invoice-edit-title}}<span class="d-none">: <page name></span>
   |page name={{int:semorg-form-invoice-page-name}}/<unique number;start=1>
}}}

{{semorg-form-template|invoice}}
 
{{semorg-form-standard-inputs}}
</includeonly>

as embedded:

Use this code, if this is not meant to be a standalone feature but rather a supplement that should be embedded in other forms. Add this line to a form definition that includes a field with the parameter holds template. The second parameter of the semorg-form-template-embed call should be the target field, specified with <feature>[<field>] (e.g. meeting-group[files] or {{int:semorg-meeting-group-template}}[files] to respect template customization).

{{semorg-form-template-embed|invoice|}}

Category

Category:Semorg-invoice

{{semorg-category}}

Template

Template:Semorg-invoice

<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-invoice-category}}]]{{#semorg-set:invoice 
  |amount-gross={{{amount-gross|}}} 
  |period={{{period|}}} 
  |year={{{year|}}} 
  |collection-date={{{collection-date|}}} 
  |template-name={{{template-name|}}} 
  |description={{{description|}}} 
  |department={{{department|}}} 
  |project={{{project|}}} 
  |payment-date={{{payment-date|}}} 
  |reminder-1-date={{{reminder-1-date|}}} 
  |issuer={{{issuer|}}} 
  |outro={{{outro|}}} 
  |payed={{{payed|}}} 
  |reminder-2-date={{{reminder-2-date|}}} 
  |recipient={{{recipient|}}} 
  |storno={{{storno|}}} 
  |date={{{date|}}} 
  |number={{{number|}}} 
  |amount-net={{{amount-net|}}} 
  |due-date={{{due-date|}}} 
  |intro={{{intro|}}}
}}{{#semorg-detail:invoice}}{{#semorg-table:invoice 
  |amount-gross={{{amount-gross|}}} 
  |period={{{period|}}} 
  |year={{{year|}}} 
  |collection-date={{{collection-date|}}} 
  |template-name={{{template-name|}}} 
  |description={{{description|}}} 
  |department={{{department|}}} 
  |project={{{project|}}} 
  |payment-date={{{payment-date|}}} 
  |reminder-1-date={{{reminder-1-date|}}} 
  |issuer={{{issuer|}}} 
  |outro={{{outro|}}} 
  |payed={{{payed|}}} 
  |reminder-2-date={{{reminder-2-date|}}} 
  |recipient={{{recipient|}}} 
  |storno={{{storno|}}} 
  |date={{{date|}}} 
  |number={{{number|}}} 
  |amount-net={{{amount-net|}}} 
  |due-date={{{due-date|}}} 
  |intro={{{intro|}}}
}}</includeonly>

Row Template

Template:Semorg-invoice-row

<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr>
<td>[[{{{target|}}}]]</td> 
<td>{{{amount-gross|}}}</td> 
<td>{{{period|}}}</td> 
<td>{{{year|}}}</td> 
<td>{{{collection-date|}}}</td> 
<td>{{{template-name|}}}</td> 
<td>{{{description|}}}</td> 
<td>{{{department|}}}</td> 
<td>{{{project|}}}</td> 
<td>{{{payment-date|}}}</td> 
<td>{{{reminder-1-date|}}}</td> 
<td>{{{issuer|}}}</td> 
<td>{{{outro|}}}</td> 
<td>{{{payed|}}}</td> 
<td>{{{reminder-2-date|}}}</td> 
<td>{{{recipient|}}}</td> 
<td>{{{storno|}}}</td> 
<td>{{{date|}}}</td> 
<td>{{{number|}}}</td> 
<td>{{{amount-net|}}}</td> 
<td>{{{due-date|}}}</td> 
<td>{{{intro|}}}</td>
{{semorg-showedit
  |target={{{target|}}}
}}
</tr></includeonly>

Overview Page Template

Template:Semorg-invoice-overview

<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{#semorg-list:invoice
  |heading={{int:semorg-invoice-page-name}}
  |formlink={{#semorg-formlink:invoice}}
  |links={{{links|}}}
  |query={{{query|}}}
  |sort={{{sort|}}}
  |order={{{order|}}}
  |limit={{{limit|}}}
  |filter links={{{filter links|}}}
  |filters={{{filters|}}}
  |category={{{category|}}}
  |headers={{{headers|}}}
  |row template={{{row template|}}}
  |tableclass={{{tableclass|}}}
  |title={{{title|}}}
  |sums={{{sums|}}}
  |csv={{{csv|}}}
  |default={{{default|}}}
  |returnto={{{returnto|}}}
  |help={{{help|}}}
}}</includeonly>

Overview Page

[[]]

{{semorg-invoice-overview}}

Property Registration

Add the following line to LocalSettings.php:

$wgSemorgAdditionalProperties['invoice'] = [ "id" => "IN","fields" => ["amount-gross" => [ "id" => "AG","type" => "num" ],"period" => [ "id" => "PE","type" => "txt" ],"year" => [ "id" => "YE","type" => "num" ],"collection-date" => [ "id" => "CD","type" => "dat" ],"template-name" => [ "id" => "TN","type" => "txt" ],"description" => [ "id" => "DS","type" => "txt" ],"department" => [ "id" => "DE","type" => "wpg" ],"project" => [ "id" => "PJ","type" => "wpg" ],"payment-date" => [ "id" => "PD","type" => "dat" ],"reminder-1-date" => [ "id" => "R1","type" => "dat" ],"issuer" => [ "id" => "IS","type" => "wpg" ],"outro" => [ "id" => "OU","type" => "txt" ],"payed" => [ "id" => "PA","type" => "boo" ],"reminder-2-date" => [ "id" => "R2","type" => "dat" ],"recipient" => [ "id" => "RE","type" => "txt" ],"storno" => [ "id" => "ST","type" => "boo" ],"date" => [ "id" => "DT","type" => "dat" ],"number" => [ "id" => "NU","type" => "txt" ],"amount-net" => [ "id" => "AN","type" => "num" ],"due-date" => [ "id" => "DD","type" => "dat" ],"intro" => [ "id" => "IN","type" => "txt" ], ] ];