CreatePeriodicInvoices: HTML-Formatierung beim automatischen Drucken richtig formatieren
authorMoritz Bunkus <m.bunkus@linet-services.de>
Tue, 10 Mar 2015 10:51:46 +0000 (11:51 +0100)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Tue, 10 Mar 2015 10:52:39 +0000 (11:52 +0100)
SL/BackgroundJob/CreatePeriodicInvoices.pm

index bdf5363..9f116be 100644 (file)
@@ -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 {