From: Moritz Bunkus Date: Thu, 13 Jan 2011 12:51:47 +0000 (+0100) Subject: Beim Drucken via $form->prepare_for_printing Druckervorlagenkürzel berücksichtigen X-Git-Tag: release-2.6.3~61^2~7^2~1^2~2^2~19 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=27cf17f02708d8ae41d0ab7ffcb5ddd36ab30785;p=kivitendo-erp.git Beim Drucken via $form->prepare_for_printing Druckervorlagenkürzel berücksichtigen --- diff --git a/SL/Form.pm b/SL/Form.pm index f5c0a8062..5cc9e1e6e 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -3566,8 +3566,9 @@ sub prepare_for_printing { $extension = 'xls'; } - my $email_extension = '_email' if -f "$self->{templates}/$self->{formname}_email${language}.${extension}"; - $self->{IN} = "$self->{formname}${email_extension}${language}.${extension}"; + my $printer_code = '_' . $self->{printer_code} if $self->{printer_code}; + my $email_extension = '_email' if -f "$self->{templates}/$self->{formname}_email${language}${printer_code}.${extension}"; + $self->{IN} = "$self->{formname}${email_extension}${language}${printer_code}.${extension}"; # Format dates. $self->format_dates($output_dateformat, $output_longdates,