From f6fa032d9444f9daa6a7196ee74fbb1c3ba6ddd1 Mon Sep 17 00:00:00 2001 From: Thomas Kasulke Date: Fri, 4 May 2007 08:13:36 +0000 Subject: [PATCH] get_lsits um payments eweitert --- SL/Form.pm | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/SL/Form.pm b/SL/Form.pm index d59adeece..6aedf1d6e 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -1644,6 +1644,20 @@ $main::lxdebug->enter_sub(); $main::lxdebug->leave_sub(); } +sub _get_payments { +$main::lxdebug->enter_sub(); + + my ($self, $dbh, $key) = @_; + + $key = "all_payments" unless ($key); + + my $query = qq|SELECT * FROM payment_terms ORDER BY id|; + + $self->{$key} = selectall_hashref_query($self, $dbh, $query); + + $main::lxdebug->leave_sub(); +} + sub _get_customers { $main::lxdebug->enter_sub(); @@ -1741,6 +1755,10 @@ sub get_lists { if($params{"vendors"}) { $self->_get_vendors($dbh, $params{"vendors"}); } + + if($params{"payments"}) { + $self->_get_payments($dbh, $params{"payments"}); + } $dbh->disconnect(); -- 2.20.1