X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=bin%2Fmozilla%2Fct.pl;h=4d06662e298ee7cd55d6bf881e966c689ecd373d;hb=1d027d8883ed6b13cf6c78b95b3493acc1fb715f;hp=08d825862499bfe7c3c8a1ffe917ca56233be3d6;hpb=d778a9a9ccb3f781b3924fbcff22a54ec64c8c2d;p=kivitendo-erp.git diff --git a/bin/mozilla/ct.pl b/bin/mozilla/ct.pl index 08d825862..4d06662e2 100644 --- a/bin/mozilla/ct.pl +++ b/bin/mozilla/ct.pl @@ -37,12 +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; @@ -68,502 +71,136 @@ sub add { sub search { $lxdebug->enter_sub(); - my $vc_business_type = $form->{db} eq "customer" ? - $locale->text("Customer type") : $locale->text("Vendor type"); + $form->{IS_CUSTOMER} = $form->{db} eq 'customer'; $form->get_lists("business_types" => "ALL_BUSINESS_TYPES"); - my (%labels, @values); - - my $business_types; - if (scalar(@{ $form->{ALL_BUSINESS_TYPES} }) != 0) { - push(@values, undef); - foreach my $item (@{ $form->{ALL_BUSINESS_TYPES} }) { - push(@values, $item->{id}); - $labels{$item->{id}} = $item->{description}; - } - - $business_types = - qq|