X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FInstanceConfiguration.pm;h=4c767961da3d3fe31bb3724ce017de86a4953ebc;hb=c5057972d03f3546494fabe72224785e5a0a1714;hp=59ca8a0352920f51a08a9e5b2d9d4b630b535fa9;hpb=476b802b3e103a3d6c2320c4500aaf7a55b65ecb;p=kivitendo-erp.git diff --git a/SL/InstanceConfiguration.pm b/SL/InstanceConfiguration.pm index 59ca8a035..4c767961d 100644 --- a/SL/InstanceConfiguration.pm +++ b/SL/InstanceConfiguration.pm @@ -52,6 +52,16 @@ sub get_currencies { return @{ $self->currencies }; } +sub get_address { + # Compatibility function: back in the day there was only a single + # address field. + my ($self) = @_; + + my $zipcode_city = join ' ', grep { $_ } ($self->get_address_zipcode, $self->get_address_city); + + return join "\n", grep { $_ } ($self->get_address_street1, $self->get_address_street2, $zipcode_city, $self->get_address_country); +} + sub AUTOLOAD { our $AUTOLOAD;