]> wagnertech.de Git - mfinanz.git/blobdiff - SL/BackgroundJob/CreatePeriodicInvoices.pm
wzToolTip durch jQuery ToolTipster ersetzt
[mfinanz.git] / SL / BackgroundJob / CreatePeriodicInvoices.pm
index 651552a5f4cb39eec13a4a9483b4dfebe155eaf7..9f116becbd1006efa160f594e1ba60d30dc20625 100644 (file)
@@ -107,7 +107,7 @@ sub _generate_time_period_variables {
 sub _replace_vars {
   my (%params) = @_;
   my $sub      = $params{attribute};
-  my $str      = $params{object}->$sub;
+  my $str      = $params{object}->$sub // '';
   my $sub_fmt  = lc($params{attribute_format} // 'text');
 
   my ($start_tag, $end_tag) = $sub_fmt eq 'html' ? ('&lt;%', '%&gt;') : ('<%', '%>');
@@ -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 {