From: Moritz Bunkus Date: Thu, 5 Feb 2015 10:08:09 +0000 (+0100) Subject: CreatePeriodicInvoices: HTML-Formatierung in Langtexten berücksichtigen Teil 2 X-Git-Tag: release-3.2.1~54 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=326fa24ae5e32fa0196a6785accfc1b667165f56;p=kivitendo-erp.git CreatePeriodicInvoices: HTML-Formatierung in Langtexten berücksichtigen Teil 2 Nach Umstellung der Bemerkungsfelder in Einkaufs- und Verkaufsbelegen muss auch das Feld »notes« als HTML-formatiert behandelt werden. --- 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);