2 # @description: Entfernt mögliche Leerzeichen am Anfang und Ende jeder Währung
3 # @depends: release_3_0_0
5 package SL::DBUpgrade2::rm_whitespaces;
7 use parent qw(SL::DBUpgrade2::Base);
17 foreach my $table (qw(ar ap oe customer delivery_orders exchangerate vendor)){
18 $self->db_query(qq|UPDATE ${table} SET curr=BTRIM(curr)|)
21 $query = qq|SELECT curr FROM defaults|;
22 my ($curr) = $self->dbh->selectrow_array($query);
26 $query = qq|UPDATE defaults SET curr = '$curr'|;
27 $self->db_query($query);