X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/39da7f8cf4f0db564e9e6e9d8f5bd8aedcc5aaea..17a8e2bbdba1c715abdb106a0819cf913cdf6fb6:/SL/AP.pm diff --git a/SL/AP.pm b/SL/AP.pm index 514324522..e2709f734 100644 --- a/SL/AP.pm +++ b/SL/AP.pm @@ -578,6 +578,7 @@ sub post_payment { ($form->{defaultcurrency}) = selectrow_query($form, $dbh, qq|SELECT curr FROM defaults|); $form->{defaultcurrency} = (split m/:/, $form->{defaultcurrency})[0]; + $form->{currency} = $form->{defaultcurrency} if ($form->{defaultcurrency} && ($form->{currency} =~ m/^\s*$/)); $form->{exchangerate} = $form->format_amount($myconfig, $form->{exchangerate});