]> wagnertech.de Git - mfinanz.git/blobdiff - SL/Form.pm
Leerzeichen am Ende bei curr(ency) entfernen.
[mfinanz.git] / SL / Form.pm
index b21f94c71c8c16209e52a43fa868bab796d19d65..a5c2abec9c2fa668dfdfcace3b82416def13f079 100644 (file)
@@ -2968,6 +2968,9 @@ sub create_links {
       $self->{$key} = $ref->{$key};
     }
 
+    # remove any trailing whitespace
+    $self->{currency} =~ s/\s*$//;
+
     my $transdate = "current_date";
     if ($self->{transdate}) {
       $transdate = $dbh->quote($self->{transdate});
@@ -3144,6 +3147,9 @@ sub lastname_used {
 
   map { $self->{$_} = $ref->{$_} } values %column_map;
 
+  # remove any trailing whitespace
+  $self->{currency} =~ s/\s*$// if $self->{currency};
+
   $main::lxdebug->leave_sub();
 }