X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/956a4ca7dc8a8f6c9274d721f8a65e6c566f5859..d1f44c84d990f57982854c6a4716c0f233f45bca:/SL/VK.pm diff --git a/SL/VK.pm b/SL/VK.pm index 8025d3dc1..3ec6e0870 100644 --- a/SL/VK.pm +++ b/SL/VK.pm @@ -25,7 +25,8 @@ # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software -# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, +# MA 02110-1335, USA. #====================================================================== # # Sold Items report @@ -147,10 +148,9 @@ sub invoice_transactions { $where .= " AND ar.transdate <= ?"; push(@values, $form->{transdateto}); } - if ($form->{department}) { - my ($null, $department_id) = split /--/, $form->{department}; + if ($form->{department_id}) { $where .= " AND ar.department_id = ?"; - push(@values, $department_id); + push @values, conv_i($form->{department_id}); } if ($form->{employee_id}) { $where .= " AND ar.employee_id = ?";