X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=bin%2Fmozilla%2Fct.pl;h=d3f632347eb7505111354ed25c6d89d74b1e35ba;hb=65de6f61582fbd9e93c4a06cb11daab66ff4f308;hp=fe166c52015498fcdbf5f112510ff9897e72987a;hpb=d629acd82a27e980899a044ca8b0f4becc8e94bb;p=kivitendo-erp.git diff --git a/bin/mozilla/ct.pl b/bin/mozilla/ct.pl index fe166c520..d3f632347 100644 --- a/bin/mozilla/ct.pl +++ b/bin/mozilla/ct.pl @@ -36,1555 +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 POSIX qw(strftime); use SL::CT; -use CGI::Ajax; -use CGI; -use Data::Dumper; +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}&login=$form->{login}&password=$form->{password}" - unless $form->{callback}; - - CT->populate_drop_down_boxes(\%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"); - - $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|