From f9fbb006c544e9e0d53e2636a521675fdfdcde6f Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 10 Mar 2015 11:51:46 +0100 Subject: [PATCH] CreatePeriodicInvoices: HTML-Formatierung beim automatischen Drucken richtig formatieren --- SL/BackgroundJob/CreatePeriodicInvoices.pm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/SL/BackgroundJob/CreatePeriodicInvoices.pm b/SL/BackgroundJob/CreatePeriodicInvoices.pm index bdf536346..9f116becb 100644 --- a/SL/BackgroundJob/CreatePeriodicInvoices.pm +++ b/SL/BackgroundJob/CreatePeriodicInvoices.pm @@ -316,6 +316,14 @@ sub _print_invoice { $form->{OUT} = $config->printer->printer_command; $form->{OUT_MODE} = '|-'; + $form->{TEMPLATE_DRIVER_OPTIONS} = { + variable_content_types => { + longdescription => 'html', + partnotes => 'html', + notes => 'html', + }, + }; + $form->prepare_for_printing; $form->throw_on_error(sub { -- 2.20.1