X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FInstanceConfiguration.pm;h=4c767961da3d3fe31bb3724ce017de86a4953ebc;hb=15aab04c1710b3c8a2bf8785aef31f13a958a43e;hp=699568993e53950bf216ad97ab267d71614fc7af;hpb=99ca5bfa5a8e249a3cf67a59ab5dae3a6ee10430;p=kivitendo-erp.git diff --git a/SL/InstanceConfiguration.pm b/SL/InstanceConfiguration.pm index 699568993..4c767961d 100644 --- a/SL/InstanceConfiguration.pm +++ b/SL/InstanceConfiguration.pm @@ -35,7 +35,7 @@ sub init_default_currency { return (SL::DBUtils::selectfirst_array_query($::form, $::form->get_standard_dbh, qq|SELECT name FROM currencies WHERE id = ?|, $self->data->{currency_id}))[0]; } -sub crm_installed { +sub init_crm_installed { return -f (SL::System::Process->exe_dir . '/crm/Changelog'); } @@ -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; @@ -123,6 +133,13 @@ Returns the default inventory system, perpetual or periodic Returns the default profit determination method, balance or income +=item C + +Returns the default method for determining the startdate for the balance +report. + +Valid options: +closed_to start_of_year all_transactions last_ob_or_all_transactions last_ob_or_start_of_year =item C @@ -169,7 +186,7 @@ Returns the default behavior for showing best before date, true or false =item C -Returns the default behavior for showing the mark as paid button for the +Returns the default behavior for showing the "mark as paid" button for the corresponding record type (true or false). =item C @@ -198,11 +215,9 @@ current stock quantity =item C -Returns the default bin_id for transfers without checking the. +Returns the default bin_id for transfers without checking the current stock quantity - - =item C =item C @@ -227,6 +242,14 @@ Returns the configuration for storing documents in the corresponding WebDAV fold Returns the configuration for "vertreter" +=item C + +Returns the configuration for experimental feature "assortment" + +=item C + +Returns the configuration for the experimental feature "order" + =item C Returns the configuarion for show image in parts @@ -237,7 +260,7 @@ Returns the css format string for images shown in parts =item C -Returns the configuartion for showing the picture in the results when you search for parts +Returns the configuration for showing the picture in the results when you search for parts =back