From 023866e05bc0407f63fd6f4be1854f8165bbd7a7 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 6 Jun 2007 07:53:27 +0000 Subject: [PATCH] =?utf8?q?Verkaufsrechnungen:=201.=20Wenn=20ein=20nicht=20?= =?utf8?q?existierender=20Kundenname=20eingegeben=20wird,=20so=20wird=20wi?= =?utf8?q?eder=20die=20richtige=20Fehlermeldung=20ausgegeben.=202.=20Wenn?= =?utf8?q?=20statt=20der=20Drop-Down-Box=20die=20Eingabezeile=20zur=20Ausw?= =?utf8?q?ahl=20des=20Kunden=20angezeigt=20wird,=20so=20wird=20die=20ID=20?= =?utf8?q?nicht=20mehr=20angeh=C3=A4ngt.=20Beides=20Bugs,=20die=20in=20den?= =?utf8?q?=20letzten=20Wochen=20neu=20hinzukamen.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- bin/mozilla/is.pl | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/bin/mozilla/is.pl b/bin/mozilla/is.pl index 78ee3d316..815f790fe 100644 --- a/bin/mozilla/is.pl +++ b/bin/mozilla/is.pl @@ -171,7 +171,6 @@ sub invoice_links { if (@{ $form->{all_customer} }) { $form->{customer} = "$form->{customer}--$form->{customer_id}"; - $form->{selectcustomer} = "$form->{customer}--$form->{customer_id}"; } # departments @@ -377,11 +376,13 @@ sub form_header { $labels{$item->{name}.qq|--|.$item->{"id"}} = $item->{"name"}; } + $form->{selectcustomer} = ($myconfig{vclimit} > scalar(@values)); + my $customers = qq| | . $locale->text('Customer') . qq| | . (($myconfig{vclimit} <= scalar(@values)) - ? qq|| + ? qq|| : (NTI($cgi->popup_menu('-name' => 'customer', '-default' => $form->{oldcustomer}, '-onChange' => 'document.getElementById(\'update_button\').click();', '-values' => \@values, '-labels' => \%labels, '-style' => 'width: 250px')))) . qq| @@ -488,12 +489,6 @@ sub form_header { s/option>\Q$form->{$item}\E/option selected>$form->{$item}/; } - #quote customer Bug 133 - $form->{selectcustomer} = $form->quote($form->{selectcustomer}); - - #substitute \n and \r to \s (bug 543) - $form->{selectcustomer} =~ s/[\n\r]/ /g; - if (($form->{creditlimit} != 0) && ($form->{creditremaining} < 0) && !$form->{update}) { $creditwarning = 1; } else { @@ -662,7 +657,7 @@ sub form_header { - + $contact $shipto -- 2.20.1