X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fdn.pl;h=c6c520e66d980764deca4738480215f7a88f635c;hb=a6cf76a2874a723b04d508c99b30f7fd5a4f6573;hp=a4d46b5c3040843c39d72eda7d6d0e40afc09e66;hpb=71c23cdf2826595579b8e62fc964393875ef070f;p=kivitendo-erp.git diff --git a/bin/mozilla/dn.pl b/bin/mozilla/dn.pl index a4d46b5c3..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} || [] }; @@ -306,8 +303,6 @@ sub search { DN->get_config(\%myconfig, \%$form); - $form->{SHOW_CUSTOMER_DDBOX} = scalar @{ $form->{ALL_CUSTOMERS} } <= $myconfig{vclimit}; - $form->{SHOW_DEPARTMENT_DDBOX} = scalar @{ $form->{ALL_CUSTOMERS} }; $form->{SHOW_DUNNING_LEVELS} = scalar @{ $form->{DUNNING} }; $form->{title} = $locale->text('Dunnings'); @@ -454,6 +449,7 @@ sub show_dunning { $report->set_options_from_form(); + $::request->layout->add_javascripts("kivi.Dunning.js"); $report->generate_with_headers(); $main::lxdebug->leave_sub();