From: G. Richardson Date: Fri, 23 Dec 2016 08:15:25 +0000 (+0100) Subject: Debitorenbuchung - Abteilung nutzt immer L.select_tag als Dropdown X-Git-Tag: release-3.5.4~1783 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=0e60202e4d9de0e0377e63fccc3a2f93e68bd24f;p=kivitendo-erp.git Debitorenbuchung - Abteilung nutzt immer L.select_tag als Dropdown --- 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}) { diff --git a/bin/mozilla/ar.pl b/bin/mozilla/ar.pl index 3b94d818f..7456cd5f9 100644 --- a/bin/mozilla/ar.pl +++ b/bin/mozilla/ar.pl @@ -181,16 +181,7 @@ sub create_links { (@{ $form->{all_customer} }); } - # departments - if (@{ $form->{all_departments} || [] }) { - $form->{selectdepartment} = "