From a5d5620d468d74e593ee31ece1d7dc3612d14faa Mon Sep 17 00:00:00 2001 From: Thomas Kasulke Date: Mon, 30 Apr 2007 13:14:23 +0000 Subject: [PATCH] =?utf8?q?subs=20f=C3=BCr=20den=20customer=20und=20employe?= =?utf8?q?e=20select=20angepasst;=20sowie=20get=5Flists?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Form.pm | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/SL/Form.pm b/SL/Form.pm index caace43f6..9ba3f43bc 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -1602,6 +1602,20 @@ $main::lxdebug->enter_sub(); $main::lxdebug->leave_sub(); } +sub _get_customers { + $main::lxdebug->enter_sub(); + + my ($self, $dbh, $key) = @_; + + $key = "all_customers" unless ($key); + + my $query = qq|SELECT * FROM customer LIMIT $main::myconfig{vclimit}|; + + $self->{$key} = selectall_hashref_query($self, $dbh, $query); + + $main::lxdebug->leave_sub(); +} + sub get_lists { $main::lxdebug->enter_sub(); @@ -1663,6 +1677,10 @@ sub get_lists { if($params{"currencies"}) { $self->_get_currencies($dbh, $params{"currencies"}); } + + if($params{"customers"}) { + $self->_get_customers($dbh, $params{"customers"}); + } $dbh->disconnect(); -- 2.20.1