From f3f2ec384d905c686df842ac7175d48792273487 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 23 Jan 2017 13:52:14 +0100 Subject: [PATCH] Mahnungen: $form->all_vc nicht mehr verwenden --- bin/mozilla/dn.pl | 5 +---- templates/webpages/dunning/add.html | 19 ------------------- 2 files changed, 1 insertion(+), 23 deletions(-) diff --git a/bin/mozilla/dn.pl b/bin/mozilla/dn.pl index 443b693e0..c6c520e66 100644 --- a/bin/mozilla/dn.pl +++ b/bin/mozilla/dn.pl @@ -36,6 +36,7 @@ use POSIX qw(strftime); use SL::IS; use SL::DN; +use SL::DB::Department; use SL::DB::Dunning; use SL::Helper::Flash qw(flash); use SL::Locale::String qw(t8); @@ -98,12 +99,8 @@ sub add { $main::auth->assert('dunning_edit'); - # setup customer selection - $form->all_vc(\%myconfig, "customer", "AR"); - DN->get_config(\%myconfig, \%$form); - $form->{SHOW_CUSTOMER_SELECTION} = $form->{all_customer} && scalar @{ $form->{all_customer} }; $form->{SHOW_DUNNING_LEVEL_SELECTION} = $form->{DUNNING} && scalar @{ $form->{DUNNING} }; $form->{SHOW_DEPARTMENT_SELECTION} = $form->{all_departments} && scalar @{ $form->{all_departments} || [] }; diff --git a/templates/webpages/dunning/add.html b/templates/webpages/dunning/add.html index 4173a51af..d4a18df54 100644 --- a/templates/webpages/dunning/add.html +++ b/templates/webpages/dunning/add.html @@ -8,14 +8,7 @@ [% 'Customer' | $T8 %] - [% IF SHOW_CUSTOMER_SELECTION %] - - [% ELSE %] - [% END %] @@ -31,18 +24,6 @@ [% END %] - [% IF SHOW_DEPARTMENT_SELECTION %] - - [% 'Department' | $T8 %] - - - - - [% END %] - [% 'Invoice Number' | $T8 %] -- 2.20.1