X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fct.pl;h=d3f632347eb7505111354ed25c6d89d74b1e35ba;hb=34035b33f21af21316df798b19f2a758aa86b3a8;hp=c41fddd59f5c9aca3609f6f763b987598c94c6d1;hpb=dd9d8ebf1c16c9ba6dc92c77df52e72c76070233;p=kivitendo-erp.git diff --git a/bin/mozilla/ct.pl b/bin/mozilla/ct.pl index c41fddd59..d3f632347 100644 --- a/bin/mozilla/ct.pl +++ b/bin/mozilla/ct.pl @@ -36,1675 +36,398 @@ # $locale->text('Vendors') # $locale->text('Add Customer') # $locale->text('Add Vendor') +# $locale->text('Edit Customer') +# $locale->text('Edit Vendor') +# $locale->text('Customer saved!') +# $locale->text('Vendor saved!') +# $locale->text('Customer deleted!') +# $locale->text('Cannot delete customer!') +# $locale->text('Vendor deleted!') +# $locale->text('Cannot delete vendor!') -use SL::CT; -use CGI::Ajax; -use CGI; -use Data::Dumper; +use POSIX qw(strftime); +use SL::CT; +use SL::CTI; +use SL::CVar; +use SL::Request qw(flatten); +use SL::DB::Business; +use SL::DB::Default; +use SL::DB::DeliveryTerm; +use SL::ReportGenerator; +use SL::MoreCommon qw(uri_encode); + +require "bin/mozilla/common.pl"; +require "bin/mozilla/reportgenerator.pl"; + +use strict; 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}; - - CT->taxaccounts(\%myconfig, \%$form); - - &form_header; - &form_footer; - - $lxdebug->leave_sub(); -} - sub search { - $lxdebug->enter_sub(); - - $label = ucfirst $form->{db}; - $form->{title} = $locale->text($label . "s"); - - if ($form->{db} eq 'vendor') { - $gifi = qq| -