X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FController%2FClientConfig.pm;h=3d5b7704a06c4800dfec301c664718c2dc1593a3;hb=c6913fd763664cb1d352c80317d3266c2af7dadc;hp=59fe4f555fbaaffb7f985839f02162b89887d416;hpb=76383e4bd057a778acc2b3be2f2db278448dfe77;p=kivitendo-erp.git diff --git a/SL/Controller/ClientConfig.pm b/SL/Controller/ClientConfig.pm index 59fe4f555..3d5b7704a 100644 --- a/SL/Controller/ClientConfig.pm +++ b/SL/Controller/ClientConfig.pm @@ -18,6 +18,7 @@ use SL::Locale::String qw(t8); use SL::PriceSource::ALL; use SL::Template; use SL::Controller::TopQuickSearch; +use SL::DB::Helper::AccountingPeriod qw(get_balance_startdate_method_options); use SL::Helper::ShippedQty; __PACKAGE__->run_before('check_auth'); @@ -188,11 +189,7 @@ sub init_profit_options { } sub init_balance_startdate_method_options { - [ { title => t8("After closed period"), value => "closed_to" }, - { title => t8("Start of year"), value => "start_of_year" }, - { title => t8("All transactions"), value => "all_transactions" }, - { title => t8("Last opening balance or all transactions"), value => "last_ob_or_all_transactions" }, - { title => t8("Last opening balance or start of year"), value => "last_ob_or_start_of_year" }, ] + return SL::DB::Helper::AccountingPeriod::get_balance_startdate_method_options; } sub init_all_price_sources {