From: Sven Schöling Date: Fri, 21 Dec 2007 19:03:55 +0000 (+0000) Subject: Customer/Vendor add/edit Dialog auf templates umgestellt. X-Git-Tag: release-2.6.0beta1~384 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=4be9b9dc16a69c791e47e53790307458bcf7ad7b;p=kivitendo-erp.git Customer/Vendor add/edit Dialog auf templates umgestellt. --- diff --git a/bin/mozilla/ct.pl b/bin/mozilla/ct.pl index a4171b817..2a2d1a1f4 100644 --- a/bin/mozilla/ct.pl +++ b/bin/mozilla/ct.pl @@ -236,572 +236,35 @@ sub form_header { $lxdebug->enter_sub(); $form->get_lists("employees" => "ALL_SALESMEN", - "taxzones" => "ALL_TAXZONES"); - - $form->{taxincluded} = ($form->{taxincluded}) ? "checked" : ""; - $form->{creditlimit} = - $form->format_amount(\%myconfig, $form->{creditlimit}, 0); - $form->{discount} = $form->format_amount(\%myconfig, $form->{discount}); - - if ($myconfig{role} eq 'admin') { - $bcc = qq| - - | . $locale->text('Bcc') . qq| - - -|; - } - $form->{obsolete} = "checked" if $form->{obsolete}; - - $lang = qq||; - foreach $item (@{ $form->{languages} }) { - if ($form->{language_id} eq $item->{id}) { - $lang .= qq||; - } else { - $lang .= qq||; - } - } - - $payment = qq||; - foreach $item (@{ $form->{payment_terms} }) { - if ($form->{payment_id} eq $item->{id}) { - $payment .= qq||; - } else { - $payment .= qq||; - } - } - - if (!$form->{id}) { - if ($form->{db} eq "customer") { - $form->{taxzone_id} = 0; - } else { - $form->{taxzone_id} = 0; - } - } - - %labels = (); - @values = (); - foreach my $item (@{ $form->{"ALL_TAXZONES"} }) { - push(@values, $item->{"id"}); - $labels{$item->{"id"}} = $item->{"description"}; - } - - $taxzone = qq| - | . $locale->text('Steuersatz') . qq| - | . - NTI($cgi->popup_menu('-name' => 'taxzone_id', '-default' => $form->{"taxzone_id"}, - '-values' => \@values, '-labels' => \%labels)) . qq| - -|; - - $get_contact_url = - "$form->{script}?login=$form->{login}&password=$form->{password}&action=get_contact"; - - my $pjx = new CGI::Ajax( 'get_contact' => $get_contact_url ); - $form->{selectcontact} = ""; - if (@{ $form->{CONTACTS} }) { - foreach $item (@{ $form->{CONTACTS} }) { - if ($item->{cp_id} == $form->{cp_id}) { - $form->{selectcontact} .= - qq|\n|; - } else { - $form->{selectcontact} .= - qq|\n|; - } - - } - } - push(@ { $form->{AJAX} }, $pjx); - $ansprechpartner = qq| - - | . $locale->text('Ansprechpartner') . qq| - - - |; - $get_shipto_url = - "$form->{script}?login=$form->{login}&password=$form->{password}&action=get_shipto"; - - my $pjy = new CGI::Ajax( 'get_shipto' => $get_shipto_url ); - $form->{selectshipto} = ""; - $form->{selectshipto} .= ""; - if (@{ $form->{SHIPTO} }) { - foreach $item (@{ $form->{SHIPTO} }) { - if ($item->{shipto_id} == $form->{shipto_id}) { - $form->{selectshipto} .= - "