From 0e60202e4d9de0e0377e63fccc3a2f93e68bd24f Mon Sep 17 00:00:00 2001 From: "G. Richardson" Date: Fri, 23 Dec 2016 09:15:25 +0100 Subject: [PATCH] Debitorenbuchung - Abteilung nutzt immer L.select_tag als Dropdown --- SL/AR.pm | 11 +------- bin/mozilla/ar.pl | 37 +++++++------------------- templates/webpages/ar/form_header.html | 15 +++++------ templates/webpages/ar/search.html | 13 +-------- 4 files changed, 17 insertions(+), 59 deletions(-) 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} = "