X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Frp.pl;h=7e931d46803b508869ae835776b7eec1eef0fe0f;hb=62f99e30c191d86af9249b6ec61f410dbe46466d;hp=cf5bad33aa4f9364e45ad71dfbc8f182746b5e5d;hpb=f46f64806e39e562d4e3577bac98e07c298754a4;p=kivitendo-erp.git diff --git a/bin/mozilla/rp.pl b/bin/mozilla/rp.pl index cf5bad33a..7e931d468 100644 --- a/bin/mozilla/rp.pl +++ b/bin/mozilla/rp.pl @@ -495,7 +495,7 @@ $checked> | . $locale->text('Decimalplaces') . qq| - + $jsscript @@ -620,7 +620,7 @@ $checked> | . $locale->text('Decimalplaces') . qq| - + @@ -1253,7 +1253,8 @@ sub generate_balance_sheet { $form->{IN} = "balance_sheet.html"; # setup company variables for the form - map { $form->{$_} = $myconfig{$_} } + map { $form->{$_} = $myconfig{$_}; + $form->{$_} =~ s/\\n/\n/g; } (qw(company address businessnumber nativecurr)); $form->{templates} = $myconfig{templates}; @@ -2637,7 +2638,16 @@ sub print_options { $lxdebug->enter_sub(); $form->{sendmode} = "attachment"; - $form->{copies} = 2 unless $form->{copies}; + + $form->{"format"} = + $form->{"format"} ? $form->{"format"} : + $myconfig{"template_format"} ? $myconfig{"template_format"} : + "pdf"; + + $form->{"copies"} = + $form->{"copies"} ? $form->{"copies"} : + $myconfig{"copies"} ? $myconfig{"copies"} : + 2; $form->{PD}{ $form->{type} } = "selected"; $form->{DF}{ $form->{format} } = "selected";