From 56f1a79e930b58250a21189303e328bce2896f8d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Mon, 23 Aug 2021 10:16:32 +0200 Subject: [PATCH] Neue Druckvorlagen-Variante Rechnungskopie inkl. Wasserzeichen (marei) --- SL/Form.pm | 1 + SL/Helper/PrintOptions.pm | 1 + doc/changelog | 4 ++++ locale/de/all | 1 + templates/print/marei/invoice.tex | 10 ++++++++++ 5 files changed, 17 insertions(+) diff --git a/SL/Form.pm b/SL/Form.pm index 8d8f41768..668fd9e44 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -1154,6 +1154,7 @@ sub get_formname_translation { bin_list => $main::locale->text('Bin List'), credit_note => $main::locale->text('Credit Note'), invoice => $main::locale->text('Invoice'), + invoice_copy => $main::locale->text('Invoice Copy'), pick_list => $main::locale->text('Pick List'), proforma => $main::locale->text('Proforma Invoice'), purchase_order => $main::locale->text('Purchase Order'), diff --git a/SL/Helper/PrintOptions.pm b/SL/Helper/PrintOptions.pm index 553e812b1..cf4616f62 100644 --- a/SL/Helper/PrintOptions.pm +++ b/SL/Helper/PrintOptions.pm @@ -64,6 +64,7 @@ sub get_print_options { ($form->{type} eq 'invoice') ? ( opthash("invoice", $form->{PD}{invoice}, $locale->text('Invoice')), opthash("proforma", $form->{PD}{proforma}, $locale->text('Proforma Invoice')), + opthash("invoice_copy", $form->{PD}{invoice_copy}, $locale->text('Invoice Copy')), ) : undef, ($form->{type} eq 'invoice' && $form->{storno}) ? ( opthash("storno_invoice", $form->{PD}{storno_invoice}, $locale->text('Storno Invoice')), diff --git a/doc/changelog b/doc/changelog index 60042df37..1de02e6a2 100644 --- a/doc/changelog +++ b/doc/changelog @@ -18,6 +18,10 @@ Mittelgroße neue Features: Kleinere neue Features und Detailverbesserungen: +- neue Druckvorlagen-Variante "Rechnungskopie", die mit dem Druckvorlagensatz marei + ein Wasserzeichen "Rechnungskopie" bei Verkaufs-Rechnungen erzeugt + + Bugfixes (Tracker: https://www.kivitendo.de/redmine): diff --git a/locale/de/all b/locale/de/all index 798357837..de43ef379 100755 --- a/locale/de/all +++ b/locale/de/all @@ -1818,6 +1818,7 @@ $self->{texts} = { 'Invnumber missing!' => 'Rechnungsnummer fehlt!', 'Invoice' => 'Rechnung', 'Invoice (one letter abbreviation)' => 'R', + 'Invoice Copy' => 'Rechnungskopie', 'Invoice Date' => 'Rechnungsdatum', 'Invoice Date missing!' => 'Rechnungsdatum fehlt!', 'Invoice Duedate' => 'Fälligkeitsdatum', diff --git a/templates/print/marei/invoice.tex b/templates/print/marei/invoice.tex index 4241692c2..04cf99e4a 100644 --- a/templates/print/marei/invoice.tex +++ b/templates/print/marei/invoice.tex @@ -1,5 +1,15 @@ \documentclass[paper=a4,fontsize=10pt]{scrartcl} \usepackage{kiviletter} +<%if template_meta.formname == "invoice_copy"%> + \usepackage{transparent} + \DeclareNewLayer[page,foreground,contents={ + \parbox[c][\layerheight][c]{\layerwidth}{\centering\color{gray}\scalebox{11}{\rotatebox{60}{\texttransparent{0.5}{\rechnungskopie}}}} + }]{foreground} + \AddLayersToPageStyle{kivitendo.letter.first}{foreground}%Hintergrund für die erste Seite aktivieren + \AddLayersToPageStyle{kivitendo.letter}{foreground}%Hintergrund für die erste Seite aktivieren +<%end if%> + + % Variablen, die in settings verwendet werden -- 2.20.1