X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FVK.pm;h=3ec6e0870dbed50cf3eddfb97e2376f344503c7c;hb=2fe6237c8b09d2f5a83145673c15be84bdfadf8a;hp=8025d3dc122e0061d4f033ea7be5bf31ee8fb52a;hpb=956a4ca7dc8a8f6c9274d721f8a65e6c566f5859;p=kivitendo-erp.git 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 = ?";