From aa8ce6f54620ff173158c259bd5430eb8e2bdb67 Mon Sep 17 00:00:00 2001 From: Thomas Kasulke Date: Fri, 27 Apr 2007 10:50:48 +0000 Subject: [PATCH] =?utf8?q?Erweiterung=20der=20get=5Flists=20f=C3=BCr=20die?= =?utf8?q?=20currencies?= 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 cbc4df1b7..65fdaced1 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -1588,6 +1588,20 @@ sub _get_dunning_configs { $main::lxdebug->leave_sub(); } +sub _get_currencies { +$main::lxdebug->enter_sub(); + + my ($self, $dbh, $key) = @_; + + $key = "all_currencies" unless ($key); + + my $query = qq|SELECT curr AS currency FROM defaults|; + + $self->{$key} = selectall_hashref_query($self, $dbh, $query); + + $main::lxdebug->leave_sub(); +} + sub get_lists { $main::lxdebug->enter_sub(); @@ -1645,6 +1659,10 @@ sub get_lists { if ($params{"dunning_configs"}) { $self->_get_dunning_configs($dbh, $params{"dunning_configs"}); } + + if($params{"currencies"}) { + $self->_get_currencies($dbh, $params{"currencies"}); + } $dbh->disconnect(); -- 2.20.1