X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/1b9a64fa292f375c82b4af788d0606354bc4e8ff..d1f44c84d990f57982854c6a4716c0f233f45bca:/SL/VK.pm diff --git a/SL/VK.pm b/SL/VK.pm index cb165ebef..3ec6e0870 100644 --- a/SL/VK.pm +++ b/SL/VK.pm @@ -148,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 = ?";