X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=inline;f=bin%2Fmozilla%2Fct.pl;h=4d06662e298ee7cd55d6bf881e966c689ecd373d;hb=b6133a726fa261cb97f2c105ea4a93161609d6ca;hp=782f183e46eead0734e94090478b657ff9dd982c;hpb=5dd059ffbe9317acf466ad70610513ded8ad1c6f;p=kivitendo-erp.git diff --git a/bin/mozilla/ct.pl b/bin/mozilla/ct.pl index 782f183e4..4d06662e2 100644 --- a/bin/mozilla/ct.pl +++ b/bin/mozilla/ct.pl @@ -37,7 +37,15 @@ # $locale->text('Add Customer') # $locale->text('Add Vendor') +use CGI; +use CGI::Ajax; +use POSIX qw(strftime); + use SL::CT; +use SL::ReportGenerator; + +require "bin/mozilla/common.pl"; +require "bin/mozilla/reportgenerator.pl"; 1; @@ -49,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; @@ -63,374 +71,136 @@ sub add { sub search { $lxdebug->enter_sub(); - $label = ucfirst $form->{db}; - $form->{title} = $locale->text($label . "s"); - - if ($form->{db} eq 'vendor') { - $gifi = qq| -