X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=bin%2Fmozilla%2Fct.pl;h=e5ba1ddf8ff48d4fe44667b360a374b20a20699b;hb=2d6988532a665bd7e42bb88a38a8b52cbb352646;hp=e20efd2b9b4c90114584540179d1dcf39dfc091d;hpb=0576299f2aa98125991c4ffcd2f75073ea583d7d;p=kivitendo-erp.git diff --git a/bin/mozilla/ct.pl b/bin/mozilla/ct.pl index e20efd2b9..e5ba1ddf8 100644 --- a/bin/mozilla/ct.pl +++ b/bin/mozilla/ct.pl @@ -38,6 +38,11 @@ # $locale->text('Add Vendor') use SL::CT; +use CGI::Ajax; +use CGI; +use Data::Dumper; + +require "bin/mozilla/common.pl"; 1; @@ -49,10 +54,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,17 +68,34 @@ sub add { sub search { $lxdebug->enter_sub(); - $label = ucfirst $form->{db}; - $form->{title} = $locale->text($label . "s"); + my $vc_business_type = $form->{db} eq "customer" ? + $locale->text("Customer type") : $locale->text("Vendor type"); - if ($form->{db} eq 'vendor') { - $gifi = qq| -
| - . $locale->text('ID') - . qq| | + . $locale->text('ID') . qq|| - . $locale->text($label . ' Number') - . qq| | + . $locale->text($label . ' Number') . qq|| - . $locale->text('Company Name') - . qq| | + . $locale->text('Company Name') . qq|| - . $locale->text('Address') - . qq| | + . $locale->text('Address') . qq|
| - . $locale->text('Contact') - . qq| | + . $locale->text('Contact') . qq|| - . $locale->text('Phone') - . qq| | + . $locale->text('Phone') . qq|| - . $locale->text('Fax') - . qq| | + . $locale->text('Fax') . qq|| - . $locale->text('E-mail') - . qq| | + . $locale->text('E-mail') . qq|
| - . $locale->text('Tax Number') - . qq| | - $gifi + . $locale->text('Tax Number') . qq|| - . $locale->text('SIC') - . qq| | + . $locale->text('SIC') . qq|| - . $locale->text('Type of Business') - . qq| | + . $vc_business_type . qq| +|
| + . $locale->text('Invoices') . qq| | +| + . $locale->text('Orders') . qq| | +| + . $locale->text('Quotations') . qq| | +