From: Thomas Kasulke Date: Fri, 4 May 2007 08:13:36 +0000 (+0000) Subject: get_lsits um payments eweitert X-Git-Tag: release-2.4.3^2~396 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=f6fa032d9444f9daa6a7196ee74fbb1c3ba6ddd1;p=kivitendo-erp.git get_lsits um payments eweitert --- 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();