forked from momo/invoiceplane-template
Compare commits
5 commits
Author | SHA1 | Date | |
---|---|---|---|
teutat3s | d5e7cb73a8 | ||
b12f | d59893ebcb | ||
b12f | b0dabc8dfc | ||
hensoko | d8fb72b1b1 | ||
Benjamin Yule Bädorf | ba61a4fb5b |
76
.editorconfig
Normal file
76
.editorconfig
Normal file
|
@ -0,0 +1,76 @@
|
||||||
|
# Editor configuration, see http://editorconfig.org
|
||||||
|
root = true
|
||||||
|
|
||||||
|
[*]
|
||||||
|
end_of_line = lf
|
||||||
|
insert_final_newline = true
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
charset = utf-8
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
||||||
|
|
||||||
|
# Ignore diffs/patches
|
||||||
|
[*.{diff,patch}]
|
||||||
|
end_of_line = unset
|
||||||
|
insert_final_newline = unset
|
||||||
|
trim_trailing_whitespace = unset
|
||||||
|
indent_size = unset
|
||||||
|
charset = unset
|
||||||
|
indent_style = unset
|
||||||
|
indent_size = unset
|
||||||
|
|
||||||
|
[{.*,secrets}/**]
|
||||||
|
end_of_line = unset
|
||||||
|
insert_final_newline = unset
|
||||||
|
trim_trailing_whitespace = unset
|
||||||
|
charset = unset
|
||||||
|
indent_style = unset
|
||||||
|
indent_size = unset
|
||||||
|
|
||||||
|
[*.rom]
|
||||||
|
end_of_line = unset
|
||||||
|
insert_final_newline = unset
|
||||||
|
trim_trailing_whitespace = unset
|
||||||
|
charset = unset
|
||||||
|
indent_style = unset
|
||||||
|
indent_size = unset
|
||||||
|
|
||||||
|
[*.py]
|
||||||
|
indent_size = 4
|
||||||
|
|
||||||
|
[*.md]
|
||||||
|
max_line_length = off
|
||||||
|
trim_trailing_whitespace = false
|
||||||
|
|
||||||
|
# Ignore diffs/patches
|
||||||
|
[*.{diff,patch}]
|
||||||
|
end_of_line = unset
|
||||||
|
insert_final_newline = unset
|
||||||
|
trim_trailing_whitespace = unset
|
||||||
|
indent_size = unset
|
||||||
|
charset = unset
|
||||||
|
indent_style = unset
|
||||||
|
indent_size = unset
|
||||||
|
|
||||||
|
[{.*,secrets}/**]
|
||||||
|
end_of_line = unset
|
||||||
|
insert_final_newline = unset
|
||||||
|
trim_trailing_whitespace = unset
|
||||||
|
charset = unset
|
||||||
|
indent_style = unset
|
||||||
|
indent_size = unset
|
||||||
|
|
||||||
|
[*.rom]
|
||||||
|
end_of_line = unset
|
||||||
|
insert_final_newline = unset
|
||||||
|
trim_trailing_whitespace = unset
|
||||||
|
charset = unset
|
||||||
|
indent_style = unset
|
||||||
|
indent_size = unset
|
||||||
|
|
||||||
|
[*.py]
|
||||||
|
indent_size = 4
|
||||||
|
|
||||||
|
[*.md]
|
||||||
|
max_line_length = off
|
||||||
|
trim_trailing_whitespace = false
|
|
@ -8,10 +8,18 @@ This Template is adopted from the original one with some minor changes:
|
||||||
- Altered spacing and fields due to DIN 5008
|
- Altered spacing and fields due to DIN 5008
|
||||||
- Moved zip-code in front of city
|
- Moved zip-code in front of city
|
||||||
|
|
||||||
|
This Template has hardcoded German text.
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
Simply add the files into `application/views/invoice_templates/pdf` and select them in Invoiceplane's *System Settings -> Invoices* as PDF templates.
|
Simply add the files into `application/views/invoice_templates/pdf` and select them in Invoiceplane's *System Settings -> Invoices* as PDF templates.
|
||||||
|
|
||||||
|
### Extra fields
|
||||||
|
|
||||||
|
You can add a "Leistungszeitraum" for any invoice by defining the two custom date fields: `Leistungszeitraum-Anfang` and `Leistungszeitraum-Ende`. These will not be shown on the invoice if either is not set.
|
||||||
|
|
||||||
|
You can also add a description text for the full invoice by adding a text custom field called `Beschreibung`.
|
||||||
|
|
||||||
## Example
|
## Example
|
||||||
|
|
||||||
![Screenshot](screenshot.png)
|
![Screenshot](screenshot.png)
|
||||||
|
|
|
@ -229,7 +229,7 @@ footer .notes {
|
||||||
|
|
||||||
<p class="invoice-meta">
|
<p class="invoice-meta">
|
||||||
Rechnungsnummer: <?php echo $invoice->invoice_number; ?><br />
|
Rechnungsnummer: <?php echo $invoice->invoice_number; ?><br />
|
||||||
<?php if ($custom_fields['invoice']['Leistungszeitraum-Anfang'] && $custom_fields['invoice']['Leistungszeitraum-Ende']): ?>
|
<?php if (isset($custom_fields['invoice']['Leistungszeitraum-Anfang']) && isset($custom_fields['invoice']['Leistungszeitraum-Ende'])): ?>
|
||||||
Leistungszeitraum:
|
Leistungszeitraum:
|
||||||
<?php echo date_from_mysql($custom_fields['invoice']['Leistungszeitraum-Anfang'], true); ?>
|
<?php echo date_from_mysql($custom_fields['invoice']['Leistungszeitraum-Anfang'], true); ?>
|
||||||
-
|
-
|
||||||
|
@ -237,7 +237,7 @@ footer .notes {
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<?php if ($custom_fields['invoice']['Beschreibung']): ?>
|
<?php if (isset($custom_fields['invoice']['Beschreibung'])): ?>
|
||||||
<p>
|
<p>
|
||||||
<?php echo $custom_fields['invoice']['Beschreibung']; ?>
|
<?php echo $custom_fields['invoice']['Beschreibung']; ?>
|
||||||
</p>
|
</p>
|
Loading…
Reference in a new issue