X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FAR.pm;fp=SL%2FAR.pm;h=5f7faddf30facfd97a4d79de9840293c1d8324a7;hb=0e60202e4d9de0e0377e63fccc3a2f93e68bd24f;hp=e5ae896e5dfb12e91248392537716031e139fdeb;hpb=40cfb5eee3162b7e25b20f7e0f52c3def98313bc;p=kivitendo-erp.git diff --git a/SL/AR.pm b/SL/AR.pm index e5ae896e5..5f7faddf3 100644 --- a/SL/AR.pm +++ b/SL/AR.pm @@ -125,9 +125,6 @@ sub _post_transaction { } } - # update department - ($null, $form->{department_id}) = split(/--/, $form->{department}); - # amount for AR account $form->{receivables} = $form->round_amount($form->{amount}, 2) * -1; @@ -533,14 +530,8 @@ sub ar_transactions { push(@values, $business_id); } if ($form->{department_id}) { - my $department_id = $form->{department_id}; $where .= " AND a.department_id = ?"; - push(@values, $department_id); - } - if ($form->{department}) { - my $department = like($form->{department}); - $where .= " AND d.description ILIKE ?"; - push(@values, $department); + push(@values, $form->{department_id}); } foreach my $column (qw(invnumber ordnumber cusordnumber notes transaction_description)) { if ($form->{$column}) {