X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FController%2FBuchungsgruppen.pm;h=0de9d0c0fa1a9487c43f625d39cd3bd4d3d6ffdd;hb=075499b035a29c2144f8fa066d65575b4bde755c;hp=aac6f73ab76b4cd40d0c202e58fd6e8535279a86;hpb=d3801bc92648bd7284b543162299fa31a0a0eb77;p=kivitendo-erp.git diff --git a/SL/Controller/Buchungsgruppen.pm b/SL/Controller/Buchungsgruppen.pm index aac6f73ab..0de9d0c0f 100644 --- a/SL/Controller/Buchungsgruppen.pm +++ b/SL/Controller/Buchungsgruppen.pm @@ -8,7 +8,6 @@ use SL::DB::TaxZone; use SL::Helper::Flash; use SL::Locale::String; use SL::DB::TaxzoneChart; -use SL::Controller::ClientConfig; use SL::DB::Default; use Rose::Object::MakeMethods::Generic ( @@ -53,9 +52,7 @@ sub show_form { my ($self, %params) = @_; $self->render('buchungsgruppen/form', %params, - TAXZONES => SL::DB::Manager::TaxZone->get_all_sorted(), - ACCOUNTS => SL::Controller::ClientConfig->init_accounts(), - account_label => sub { "$_[0]{accno}--$_[0]{description}" }); + TAXZONES => SL::DB::Manager::TaxZone->get_all_sorted()); } sub action_edit { @@ -89,7 +86,7 @@ sub action_delete { # constraint, if Buchungsgruppe is connected to a part my $db = $self->{config}->db; - $db->do_transaction(sub { + $db->do_transaction(sub { my $taxzone_charts = SL::DB::Manager::TaxzoneChart->get_all(where => [ buchungsgruppen_id => $self->config->id ]); foreach my $taxzonechart ( @{$taxzone_charts} ) { $taxzonechart->delete }; $self->config->delete();