X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fct.pl;h=673aa09c3cd94fd89587c85d810cef47c3f9d195;hb=8c7e44938a661e035f62840e1e177353240ace5d;hp=fc260c6da819dd0c7c68b184f2fe978d00e8c101;hpb=8e58d69a5a65f4887c7722dfae72a658b883eeec;p=kivitendo-erp.git diff --git a/bin/mozilla/ct.pl b/bin/mozilla/ct.pl index fc260c6da..673aa09c3 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; @@ -46,13 +54,15 @@ use SL::CT; 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; @@ -63,374 +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| -