From: Thomas Kasulke Date: Mon, 30 Apr 2007 13:47:20 +0000 (+0000) Subject: einen sub für get_lists -> "vendor" hinzugefügt X-Git-Tag: release-2.4.3^2~414 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=86b09030a3fb9aa7e6dfddbe0e22622f85299f21;p=kivitendo-erp.git einen sub für get_lists -> "vendor" hinzugefügt --- diff --git a/SL/Form.pm b/SL/Form.pm index 9ba3f43bc..5a2e73f87 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -1616,6 +1616,20 @@ sub _get_customers { $main::lxdebug->leave_sub(); } +sub _get_vendors { + $main::lxdebug->enter_sub(); + + my ($self, $dbh, $key) = @_; + + $key = "all_vendors" unless ($key); + + my $query = qq|SELECT * FROM vendor|; # LIMIT $main::myconfig{vclimit}|; + + $self->{$key} = selectall_hashref_query($self, $dbh, $query); + + $main::lxdebug->leave_sub(); +} + sub get_lists { $main::lxdebug->enter_sub(); @@ -1681,6 +1695,10 @@ sub get_lists { if($params{"customers"}) { $self->_get_customers($dbh, $params{"customers"}); } + + if($params{"vendors"}) { + $self->_get_vendors($dbh, $params{"vendors"}); + } $dbh->disconnect();