From: Thomas Heck Date: Mon, 24 Jun 2013 08:40:44 +0000 (+0200) Subject: SL::Controller::Customer entfernt X-Git-Tag: release-3.1.0beta1~161^2^2~34 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=267374ef8d99b9b802be53d07330d2fcb1886284;p=kivitendo-erp.git SL::Controller::Customer entfernt --- diff --git a/SL/Controller/Customer.pm b/SL/Controller/Customer.pm deleted file mode 100644 index 823af2e59..000000000 --- a/SL/Controller/Customer.pm +++ /dev/null @@ -1,26 +0,0 @@ -package SL::Controller::Customer; - -use strict; -use parent qw(SL::Controller::Base); - -use SL::DB::Customer; - -# safety -__PACKAGE__->run_before(sub { $::auth->assert('customer_vendor_edit') }); - -sub action_ajax_autocomplete { - my ($self, %params) = @_; - - my $limit = $::form->{limit} || 20; - my $type = $::form->{type} || {}; - my $query = { ilike => "%$::form->{term}%" }; - my @filter; - push @filter, ($::form->{column}) - ? ($::form->{column} => $query) - : (or => [ customernumber => $query, name => $query ]); - - $self->{customers} = SL::DB::Manager::Customer->get_all(query => [ @filter ], limit => $limit); - $self->{value} = $::form->{column} || 'name'; - - $self->render('ct/ajax_autocomplete2', { layout => 0, type => 'json' }); -}