X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fct.pl;h=673aa09c3cd94fd89587c85d810cef47c3f9d195;hb=8c7e44938a661e035f62840e1e177353240ace5d;hp=6573eeff81a81d45a604e4235b2fa8efcc9aacf9;hpb=4957e2346a5ba9a1c0e76ba95870c37090f90098;p=kivitendo-erp.git diff --git a/bin/mozilla/ct.pl b/bin/mozilla/ct.pl index 6573eeff8..673aa09c3 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; @@ -49,13 +54,15 @@ use Data::Dumper; sub add { $lxdebug->enter_sub(); + $auth->assert('customer_vendor_edit'); + $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}" unless $form->{callback}; - CT->taxaccounts(\%myconfig, \%$form); + CT->populate_drop_down_boxes(\%myconfig, \%$form); &form_header; &form_footer; @@ -66,490 +73,140 @@ sub add { sub search { $lxdebug->enter_sub(); - $label = ucfirst $form->{db}; - $form->{title} = $locale->text($label . "s"); + $auth->assert('customer_vendor_edit'); - if ($form->{db} eq 'vendor') { - $gifi = qq| -