From 326fa24ae5e32fa0196a6785accfc1b667165f56 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Thu, 5 Feb 2015 11:08:09 +0100 Subject: [PATCH] =?utf8?q?CreatePeriodicInvoices:=20HTML-Formatierung=20in?= =?utf8?q?=20Langtexten=20ber=C3=BCcksichtigen=20Teil=202?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Nach Umstellung der Bemerkungsfelder in Einkaufs- und Verkaufsbelegen muss auch das Feld »notes« als HTML-formatiert behandelt werden. --- SL/BackgroundJob/CreatePeriodicInvoices.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/BackgroundJob/CreatePeriodicInvoices.pm b/SL/BackgroundJob/CreatePeriodicInvoices.pm index 5055083ac..d80ba4eeb 100644 --- a/SL/BackgroundJob/CreatePeriodicInvoices.pm +++ b/SL/BackgroundJob/CreatePeriodicInvoices.pm @@ -168,7 +168,7 @@ sub _create_periodic_invoice { employee => $order->employee, # new_from sets employee to import user ); - _replace_vars(object => $invoice, vars => $time_period_vars, attribute => $_) for qw(notes intnotes transaction_description); + _replace_vars(object => $invoice, vars => $time_period_vars, attribute => $_, attribute_format => ($_ eq 'notes' ? 'html' : 'text')) for qw(notes intnotes transaction_description); foreach my $item (@{ $invoice->items }) { _replace_vars(object => $item, vars => $time_period_vars, attribute => $_, attribute_format => ($_ eq 'longdescription' ? 'html' : 'text')) for qw(description longdescription); -- 2.20.1