X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FTemplate%2FOpenDocument.pm;h=9f77d5700495ab8a43effc6f5dfed2406c8993f6;hb=7335b28fb5c1761a2fa8589fd0018f58c3cfaa81;hp=db254559ff02f33f4502da6380da3eef9bbf5c98;hpb=a9d122f7ebf215d8b310ea598af11f8aff85807e;p=kivitendo-erp.git diff --git a/SL/Template/OpenDocument.pm b/SL/Template/OpenDocument.pm index db254559f..9f77d5700 100644 --- a/SL/Template/OpenDocument.pm +++ b/SL/Template/OpenDocument.pm @@ -359,7 +359,7 @@ sub parse { close(OUT); my $qr_image_path; - if ($::instance_conf->get_create_qrbill_invoices) { + if ($::instance_conf->get_create_qrbill_invoices && $form->{formname} eq 'invoice') { # the biller account information, biller address and the reference number, # are needed in the template aswell as in the qr-code generation, therefore # assemble these and add to $::form @@ -435,7 +435,7 @@ sub parse { $zip->contents("styles.xml", Encode::encode('utf-8-strict', $new_styles)); } - if ($::instance_conf->get_create_qrbill_invoices) { + if ($::instance_conf->get_create_qrbill_invoices && $form->{formname} eq 'invoice') { # get placeholder path from odt XML my $qr_placeholder_path; my $dom = XML::LibXML->load_xml(string => $contents);