diff --git a/README.MD b/README.MD
index 24ecb9d..e21eb5e 100644
--- a/README.MD
+++ b/README.MD
@@ -8,10 +8,18 @@ This Template is adopted from the original one with some minor changes:
- Altered spacing and fields due to DIN 5008
- Moved zip-code in front of city
+This Template has hardcoded German text.
+
## Installation
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
![Screenshot](screenshot.png)
diff --git a/teutat3s.php b/momo.php
similarity index 87%
rename from teutat3s.php
rename to momo.php
index 7aeffb0..b30a08f 100644
--- a/teutat3s.php
+++ b/momo.php
@@ -103,49 +103,49 @@ footer .notes {
-
- user_name) . ' - ' . htmlsc($invoice->user_address_1) . ' - ' . htmlsc($invoice->user_zip) . ' ' . htmlsc($invoice->user_city);
- ?>
-
-
-
-
-
- client_vat_id) {
- echo '
' . trans('vat_id_short') . ': ' . $invoice->client_vat_id . '
';
- }
- if ($invoice->client_tax_code) {
- echo '
' . trans('tax_code_short') . ': ' . $invoice->client_tax_code . '
';
- }
- if ($invoice->client_address_1) {
- echo '
' . htmlsc($invoice->client_address_1) . '
';
- }
- if ($invoice->client_address_2) {
- echo '
' . htmlsc($invoice->client_address_2) . '
';
- }
- if ($invoice->client_city || $invoice->client_state || $invoice->client_zip) {
- echo '
';
+
+ user_name) . ' - ' . htmlsc($invoice->user_address_1) . ' - ' . htmlsc($invoice->user_zip) . ' ' . htmlsc($invoice->user_city);
+ ?>
+
+
+
+
+
+ client_vat_id) {
+ echo '
' . trans('vat_id_short') . ': ' . $invoice->client_vat_id . '
';
+ }
+ if ($invoice->client_tax_code) {
+ echo '
' . trans('tax_code_short') . ': ' . $invoice->client_tax_code . '
';
+ }
+ if ($invoice->client_address_1) {
+ echo '
' . htmlsc($invoice->client_address_1) . '
';
+ }
+ if ($invoice->client_address_2) {
+ echo '
' . htmlsc($invoice->client_address_2) . '
';
+ }
+ if ($invoice->client_city || $invoice->client_state || $invoice->client_zip) {
+ echo '
';
if ($invoice->client_zip) {
- echo htmlsc($invoice->client_zip) . ' ';
- }
- if ($invoice->client_city) {
- echo htmlsc($invoice->client_city) . ' ';
- }
- if ($invoice->client_state) {
- echo htmlsc($invoice->client_state);
- }
- echo '
';
- }
- if ($invoice->client_country) {
- echo '
' . get_country_name(trans('cldr'), $invoice->client_country) . '
';
- }
+ echo htmlsc($invoice->client_zip) . ' ';
+ }
+ if ($invoice->client_city) {
+ echo htmlsc($invoice->client_city) . ' ';
+ }
+ if ($invoice->client_state) {
+ echo htmlsc($invoice->client_state);
+ }
+ echo '
';
+ }
+ if ($invoice->client_country) {
+ echo '
' . get_country_name(trans('cldr'), $invoice->client_country) . '
';
+ }
- echo '
';
+ echo '
';
- if ($invoice->client_phone) {
- echo '
' . trans('phone_abbr') . ': ' . htmlsc($invoice->client_phone) . '
';
- } ?>
+ if ($invoice->client_phone) {
+ echo '
' . trans('phone_abbr') . ': ' . htmlsc($invoice->client_phone) . '
';
+ } ?>