X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/97c05a9fe7f877169062ee979d454af6ada7fbb0..a751b16cead5e56b62e18ee616e04323919f5fe1:/SL/Form.pm diff --git a/SL/Form.pm b/SL/Form.pm index 5069c16f2..e1ea94174 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -1578,6 +1578,18 @@ sub _get_taxcharts { $main::lxdebug->leave_sub(); } +sub _get_employees { + $main::lxdebug->enter_sub(); + + my ($self, $dbh, $key) = @_; + + $key = "all_employees" unless ($key); + $self->{$key} = + selectall_hashref_query($self, $dbh, qq|SELECT * FROM employee|); + + $main::lxdebug->leave_sub(); +} + sub get_lists { $main::lxdebug->enter_sub(); @@ -1616,6 +1628,10 @@ sub get_lists { $self->_get_taxcharts($dbh, $params{"taxcharts"}); } + if ($params{"employees"}) { + $self->_get_employees($dbh, $params{"employees"}); + } + $dbh->disconnect(); $main::lxdebug->leave_sub();