X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=inline;f=bin%2Fmozilla%2Fct.pl;h=4d06662e298ee7cd55d6bf881e966c689ecd373d;hb=b6133a726fa261cb97f2c105ea4a93161609d6ca;hp=cb1d591a0d70739f1e9f4381767cfc484a9153d9;hpb=4c79359f2d0b2360456456e325a6d4df2928ada2;p=kivitendo-erp.git diff --git a/bin/mozilla/ct.pl b/bin/mozilla/ct.pl index cb1d591a0..4d06662e2 100644 --- a/bin/mozilla/ct.pl +++ b/bin/mozilla/ct.pl @@ -37,10 +37,15 @@ # $locale->text('Add Customer') # $locale->text('Add Vendor') -use SL::CT; -use CGI::Ajax; use CGI; -use Data::Dumper; +use CGI::Ajax; +use POSIX qw(strftime); + +use SL::CT; +use SL::ReportGenerator; + +require "bin/mozilla/common.pl"; +require "bin/mozilla/reportgenerator.pl"; 1; @@ -52,10 +57,10 @@ sub add { $form->{title} = "Add"; $form->{callback} = - "$form->{script}?action=add&db=$form->{db}&path=$form->{path}&login=$form->{login}&password=$form->{password}" + "$form->{script}?action=add&db=$form->{db}&login=$form->{login}&password=$form->{password}" unless $form->{callback}; - CT->taxaccounts(\%myconfig, \%$form); + CT->populate_drop_down_boxes(\%myconfig, \%$form); &form_header; &form_footer; @@ -66,461 +71,16 @@ sub add { sub search { $lxdebug->enter_sub(); - $label = ucfirst $form->{db}; - $form->{title} = $locale->text($label . "s"); - - if ($form->{db} eq 'vendor') { - $gifi = qq| -