diff --git a/b12f.php b/b12f.php new file mode 100644 index 0000000..ffbc8bd --- /dev/null +++ b/b12f.php @@ -0,0 +1,399 @@ + + + + description != ''; + }, false); + + $colspan = 3 + ($show_item_discounts ? 1 : 0) + ($anyItemHasDescription ? 1 : 0); + $isPaid = $invoice->invoice_balance <= 0; + ?> + + + <?php _trans('invoice'); ?> + + + + + + + +

+

+

+ +
+
+ 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 '
'; + + if ($invoice->client_phone) { + echo '
' . trans('phone_abbr') . ': ' . htmlsc($invoice->client_phone) . '
'; + } ?> +
+ +
+ + + +

+ + + +
+
user_name); ?>
+ user_vat_id) { + echo '
' . trans('vat_id_short') . ': ' . $invoice->user_vat_id . '
'; + } + if ($invoice->user_tax_code) { + echo '
' . trans('tax_code_short') . ': ' . $invoice->user_tax_code . '
'; + } + if ($invoice->user_address_1) { + echo '
' . htmlsc($invoice->user_address_1) . '
'; + } + if ($invoice->user_address_2) { + echo '
' . htmlsc($invoice->user_address_2) . '
'; + } + if ($invoice->user_city || $invoice->user_state || $invoice->user_zip) { + echo '
'; + if ($invoice->user_zip) { + echo htmlsc($invoice->user_zip) . ' '; + } + if ($invoice->user_city) { + echo htmlsc($invoice->user_city) . ' '; + } + if ($invoice->user_state) { + echo htmlsc($invoice->user_state); + } + echo '
'; + } + if ($invoice->user_country) { + echo '
' . get_country_name(trans('cldr'), $invoice->user_country) . '
'; + } + + echo '
'; + + if ($invoice->user_phone) { + echo '
' . trans('phone_abbr') . ': ' . htmlsc($invoice->user_phone) . '
'; + } + if ($invoice->user_fax) { + echo '
' . trans('fax_abbr') . ': ' . htmlsc($invoice->user_fax) . '
'; + } + ?> +
+ +
+ +
+ +
+ + + + + + + + + + + + + + + + + + + +
invoice_date_created, true); ?>
invoice_date_due, true); ?>
>>invoice_balance); ?>
payment_method_name); ?>
+
+ +

+ Rechnungsnummer: invoice_number; ?>
+ + Leistungszeitraum: + + - + + +

+ + +

+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + invoice_item_tax_total > 0) { ?> + + + + + + + + + + + + + + invoice_discount_percent != '0.00') : ?> + + + + + + invoice_discount_amount != '0.00') : ?> + + + + + + + + + + + invoice_paid != '0.00') : ?> + + + + + + + + + + +
item_name); ?>item_description)); ?> + item_quantity); ?> + item_product_unit) : ?> +
+ item_product_unit); ?> + +
+ item_price); ?> + + item_discount); ?> + + item_total); ?> +
+ + invoice_item_subtotal); ?>
+ + + invoice_item_tax_total); ?> +
+ invoice_tax_rate_name) . ' (' . format_amount($invoice_tax_rate->invoice_tax_rate_percent) . '%)'; ?> + + invoice_tax_rate_amount); ?> +
+ + + invoice_discount_percent); ?>% +
+ + + invoice_discount_amount); ?> +
+ + + invoice_total); ?> +
+ + + invoice_paid); ?> +
+ + + invoice_balance); ?> +
+
+ + + + + + + +
+ + + diff --git a/template-paid.php b/template-paid.php deleted file mode 100644 index 46da675..0000000 --- a/template-paid.php +++ /dev/null @@ -1,339 +0,0 @@ - - - - - <?php _trans('invoice'); ?> - - - - - - - -

-

-

- -
-
- 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 '
'; - - if ($invoice->client_phone) { - echo '
' . trans('phone_abbr') . ': ' . htmlsc($invoice->client_phone) . '
'; - } ?> -
- -
- - - - - -
-
user_name); ?>
- user_vat_id) { - echo '
' . trans('vat_id_short') . ': ' . $invoice->user_vat_id . '
'; - } - if ($invoice->user_tax_code) { - echo '
' . trans('tax_code_short') . ': ' . $invoice->user_tax_code . '
'; - } - if ($invoice->user_address_1) { - echo '
' . htmlsc($invoice->user_address_1) . '
'; - } - if ($invoice->user_address_2) { - echo '
' . htmlsc($invoice->user_address_2) . '
'; - } - if ($invoice->user_city || $invoice->user_state || $invoice->user_zip) { - echo '
'; - if ($invoice->user_zip) { - echo htmlsc($invoice->user_zip) . ' '; - } - if ($invoice->user_city) { - echo htmlsc($invoice->user_city) . ' '; - } - if ($invoice->user_state) { - echo htmlsc($invoice->user_state); - } - echo '
'; - } - if ($invoice->user_country) { - echo '
' . get_country_name(trans('cldr'), $invoice->user_country) . '
'; - } - - echo '
'; - - if ($invoice->user_phone) { - echo '
' . trans('phone_abbr') . ': ' . htmlsc($invoice->user_phone) . '
'; - } - if ($invoice->user_fax) { - echo '
' . trans('fax_abbr') . ': ' . htmlsc($invoice->user_fax) . '
'; - } - ?> -
- -
- -
- -
- - - - - - - - - - - - - - - - - - - -
invoice_date_created, true); ?>
invoice_date_due, true); ?>
invoice_balance); ?>
payment_method_name); ?>
-
- -

invoice_number; ?>

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - invoice_item_tax_total > 0) { ?> - - - - - - - - - - - - - - invoice_discount_percent != '0.00') : ?> - - - - - - invoice_discount_amount != '0.00') : ?> - - - - - - - - - - - - - - - - - - - -
item_name); ?>item_description)); ?> - item_quantity); ?> - item_product_unit) : ?> -
- item_product_unit); ?> - -
- item_price); ?> - - item_discount); ?> - - item_total); ?> -
class="text-right"> - - invoice_item_subtotal); ?>
class="text-right"> - - - invoice_item_tax_total); ?> -
class="text-right"> - invoice_tax_rate_name) . ' (' . format_amount($invoice_tax_rate->invoice_tax_rate_percent) . '%)'; ?> - - invoice_tax_rate_amount); ?> -
class="text-right"> - - - invoice_discount_percent); ?>% -
class="text-right"> - - - invoice_discount_amount); ?> -
class="text-right"> - - - invoice_total); ?> -
class="text-right"> - - - invoice_paid); ?> -
class="text-right"> - - - invoice_balance); ?> -
- -
- - - -
- invoice_terms) : ?> -
-
- invoice_terms)); ?> -
- -
- - - diff --git a/template.php b/template.php deleted file mode 100644 index a1da883..0000000 --- a/template.php +++ /dev/null @@ -1,337 +0,0 @@ - - - - - <?php _trans('invoice'); ?> - - - - - - - -

-

-

- -
-
- 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 '
'; - - if ($invoice->client_phone) { - echo '
' . trans('phone_abbr') . ': ' . htmlsc($invoice->client_phone) . '
'; - } ?> -
- -
- - - - - -
-
user_name); ?>
- user_vat_id) { - echo '
' . trans('vat_id_short') . ': ' . $invoice->user_vat_id . '
'; - } - if ($invoice->user_tax_code) { - echo '
' . trans('tax_code_short') . ': ' . $invoice->user_tax_code . '
'; - } - if ($invoice->user_address_1) { - echo '
' . htmlsc($invoice->user_address_1) . '
'; - } - if ($invoice->user_address_2) { - echo '
' . htmlsc($invoice->user_address_2) . '
'; - } - if ($invoice->user_city || $invoice->user_state || $invoice->user_zip) { - echo '
'; - if ($invoice->user_zip) { - echo htmlsc($invoice->user_zip) . ' '; - } - if ($invoice->user_city) { - echo htmlsc($invoice->user_city) . ' '; - } - if ($invoice->user_state) { - echo htmlsc($invoice->user_state); - } - echo '
'; - } - if ($invoice->user_country) { - echo '
' . get_country_name(trans('cldr'), $invoice->user_country) . '
'; - } - - echo '
'; - - if ($invoice->user_phone) { - echo '
' . trans('phone_abbr') . ': ' . htmlsc($invoice->user_phone) . '
'; - } - if ($invoice->user_fax) { - echo '
' . trans('fax_abbr') . ': ' . htmlsc($invoice->user_fax) . '
'; - } - ?> -
- -
- -
- -
- - - - - - - - - - - - - - - - - - - -
invoice_date_created, true); ?>
invoice_date_due, true); ?>
invoice_balance); ?>
payment_method_name); ?>
-
- -

invoice_number; ?>

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - invoice_item_tax_total > 0) { ?> - - - - - - - - - - - - - - invoice_discount_percent != '0.00') : ?> - - - - - - invoice_discount_amount != '0.00') : ?> - - - - - - - - - - - - - - - - - - - -
item_name); ?>item_description)); ?> - item_quantity); ?> - item_product_unit) : ?> -
- item_product_unit); ?> - -
- item_price); ?> - - item_discount); ?> - - item_total); ?> -
class="text-right"> - - invoice_item_subtotal); ?>
class="text-right"> - - - invoice_item_tax_total); ?> -
class="text-right"> - invoice_tax_rate_name) . ' (' . format_amount($invoice_tax_rate->invoice_tax_rate_percent) . '%)'; ?> - - invoice_tax_rate_amount); ?> -
class="text-right"> - - - invoice_discount_percent); ?>% -
class="text-right"> - - - invoice_discount_amount); ?> -
class="text-right"> - - - invoice_total); ?> -
class="text-right"> - - - invoice_paid); ?> -
class="text-right"> - - - invoice_balance); ?> -
- -
- - - - -