X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=bin%2Fmozilla%2Fct.pl;h=e5ba1ddf8ff48d4fe44667b360a374b20a20699b;hb=2d6988532a665bd7e42bb88a38a8b52cbb352646;hp=95c6e3315ba1843ca2a5cdf8be286bc859064498;hpb=4dbb09950c9f5596646537c12d991c99086fe7c1;p=kivitendo-erp.git diff --git a/bin/mozilla/ct.pl b/bin/mozilla/ct.pl index 95c6e3315..e5ba1ddf8 100644 --- a/bin/mozilla/ct.pl +++ b/bin/mozilla/ct.pl @@ -38,44 +38,66 @@ # $locale->text('Add Vendor') use SL::CT; +use CGI::Ajax; +use CGI; +use Data::Dumper; -1; -# end of main +require "bin/mozilla/common.pl"; +1; +# end of main sub add { $lxdebug->enter_sub(); - $form->{title} = "Add"; - $form->{callback} = "$form->{script}?action=add&db=$form->{db}&path=$form->{path}&login=$form->{login}&password=$form->{password}" unless $form->{callback}; + $form->{callback} = + "$form->{script}?action=add&db=$form->{db}&login=$form->{login}&password=$form->{password}" + unless $form->{callback}; + + CT->populate_drop_down_boxes(\%myconfig, \%$form); - CT->taxaccounts(\%myconfig, \%$form); - &form_header; &form_footer; - + $lxdebug->leave_sub(); } - sub search { $lxdebug->enter_sub(); + my $vc_business_type = $form->{db} eq "customer" ? + $locale->text("Customer type") : $locale->text("Vendor type"); - $label = ucfirst $form->{db}; - $form->{title} = $locale->text($label."s"); + $form->get_lists("business_types" => "ALL_BUSINESS_TYPES"); + my (%labels, @values); - if ($form->{db} eq 'vendor') { - $gifi = qq| -
|.$locale->text($label . ' Number').qq| | +| . $locale->text($label . ' Number') . qq| | {db}number size=35> | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|.$locale->text('Company Name').qq| | +| . $locale->text('Company Name') . qq| | |||||||||||||||||||||||||||||
|.$locale->text('Contact').qq| | +| . $locale->text('Contact') . qq| | |||||||||||||||||||||||||||||
|.$locale->text('E-mail').qq| | +| . $locale->text('E-mail') . qq| | |||||||||||||||||||||||||||||
+ | | + . $locale->text('All') . qq| + | + . $locale->text('Orphaned') . qq| | +|||||||||||||||||||||||||||||
- | |.$locale->text('All').qq| - |.$locale->text('Orphaned').qq| | +| + . $locale->text('All') . qq| + | + . $locale->text('Obsolete') . qq| + | + . $locale->text('Not obsolete') . qq| | ||||||||||||||||||||||||||||
|.$locale->text('Include in Report').qq| | +| . $locale->text('Include in Report') . qq| |
|
@@ -152,12 +199,12 @@ sub search {
-{path}>
{login}>
{password}>