X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/d729e3287170e929ff0306855d33b823a692f62d..1a106c11e3f0e22b84e92d6f52c232b5b47d3d99:/SL/IS.pm?ds=inline diff --git a/SL/IS.pm b/SL/IS.pm index bd385ef7d..c9a44281d 100644 --- a/SL/IS.pm +++ b/SL/IS.pm @@ -1480,6 +1480,8 @@ sub retrieve_invoice { $ref = selectfirst_hashref_query($form, $dbh, $query, $id); map { $form->{$_} = $ref->{$_} } keys %{ $ref }; + # remove any trailing whitespace + $form->{currency} =~ s/\s*$//; $form->{exchangerate} = $form->get_exchangerate($dbh, $form->{currency}, $form->{invdate}, "buy");