X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Frp.pl;h=47d6d4b645f1c8621fa08892bb09412420b0a67f;hb=a205ed210bf303bff2af7abcedf128c61d957f3a;hp=cf5bad33aa4f9364e45ad71dfbc8f182746b5e5d;hpb=f46f64806e39e562d4e3577bac98e07c298754a4;p=kivitendo-erp.git diff --git a/bin/mozilla/rp.pl b/bin/mozilla/rp.pl index cf5bad33a..47d6d4b64 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}; @@ -1850,16 +1851,10 @@ sub aging { -|; - } - - if ($form->{menubar}) { - require "$form->{path}/menu.pl"; - &menubar; - } + . $locale->text('E-mail') . qq|">|; +} - print qq| +print qq| @@ -2637,7 +2632,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";