X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FForm.pm;h=9ba3f43bcdd1acb316119c10ada8d239145f91a0;hb=a5d5620d468d74e593ee31ece1d7dc3612d14faa;hp=65fdaced180e54b05506bf6fefc48d0101bfcac5;hpb=aa8ce6f54620ff173158c259bd5430eb8e2bdb67;p=kivitendo-erp.git diff --git a/SL/Form.pm b/SL/Form.pm index 65fdaced1..9ba3f43bc 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -1596,6 +1596,20 @@ $main::lxdebug->enter_sub(); $key = "all_currencies" unless ($key); my $query = qq|SELECT curr AS currency FROM defaults|; + + $self->{$key} = [split(/\:/ , selectfirst_hashref_query($self, $dbh, $query)->{currency})]; + + $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); @@ -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();