From 47916a374217afc8d84bd147f0fada5086970bae Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Fri, 11 May 2007 13:52:18 +0000 Subject: [PATCH] =?utf8?q?Optik=20in=20den=20Einkaufs-=20und=20Verkaufsfor?= =?utf8?q?mularen=20etwas=20verbessert:=201.=20Drop-Down-Boxen=20"Ansprech?= =?utf8?q?partner"=20und=20"Lieferadresse"=20werden=20direkt=20unterhalb?= =?utf8?q?=20der=20Kunden-/Lieferantenauswahlbox/-zeile=20angezeigt.=202.?= =?utf8?q?=20Die=20Zeile=20"Kreditlimit"=20wird=20wie=20alle=20anderen=20Z?= =?utf8?q?eilen=20auch=20in=20der=20linken=20Spalte=20(der=20"Beschreibung?= =?utf8?q?sspalte")=20angefangen=20und=20erstreckt=20sich=20nur=20=C3=BCbe?= =?utf8?q?r=20eine=20Zeile.=203.=20Die=20Zeile=20"h=C3=B6chste=20Mahnstufe?= =?utf8?q?"=20wird=20wie=20alle=20anderen=20Zeilen=20auch=20in=20der=20lin?= =?utf8?q?ken=20Spalte=20(der=20"Beschreibungsspalte")=20angefangen.=204.?= =?utf8?q?=20Die=20Drop-Down-Boxen=20f=C3=BCr=20Ansprechpartner,=20Liefera?= =?utf8?q?dresse=20und=20W=C3=A4hrungen=20werden=20nur=20angezeigt,=20wenn?= =?utf8?q?=20es=20dort=20auch=20etwas=20auszuw=C3=A4hlen=20gibt.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- bin/mozilla/ir.pl | 84 +++++++++++++--------------- bin/mozilla/is.pl | 138 ++++++++++++++++++++++------------------------ bin/mozilla/oe.pl | 53 +++++++++++------- 3 files changed, 138 insertions(+), 137 deletions(-) diff --git a/bin/mozilla/ir.pl b/bin/mozilla/ir.pl index e6f035d01..159dc45e8 100644 --- a/bin/mozilla/ir.pl +++ b/bin/mozilla/ir.pl @@ -286,9 +286,19 @@ sub form_header { $labels{$item->{"cp_id"}} = $item->{"cp_name"} . ($item->{"cp_abteilung"} ? " ($item->{cp_abteilung})" : ""); } - my $contact = - NTI($cgi->popup_menu('-name' => 'cp_id', '-values' => \@values, - '-labels' => \%labels, '-default' => $form->{"cp_id"})); + + my $contact; + if (scalar @values > 1) { + $contact = qq| + + | . $locale->text('Contact Person') . qq| + | . + NTI($cgi->popup_menu('-name' => 'cp_id', '-values' => \@values, + '-labels' => \%labels, '-default' => $form->{"cp_id"})) + . qq| + + |; + } %labels = (); @values = (""); @@ -309,8 +319,10 @@ sub form_header { $labels{$item} = $item; } - $form->{currency} = $form->{defaultcurrency} unless $form->{currency}; - my $currencies = qq| + $form->{currency} = $form->{defaultcurrency} unless $form->{currency}; + my $currencies; + if (scalar @values) { + $currencies = qq| | . $locale->text('Currency') . qq| | . @@ -318,7 +330,8 @@ sub form_header { '-values' => \@values, '-labels' => \%labels)) . qq| |; - + } + %labels = (); @values = (); my $i = 0; @@ -396,13 +409,13 @@ sub form_header { # with JavaScript Calendar $button1 = qq| - - + text('button') . qq|> |; $button2 = qq| - - + text('button') . qq|> |; @@ -454,40 +467,21 @@ sub form_header { | . ($form->{saved_message} ? qq|

$form->{saved_message}

| : "") . qq| +
$form->{title}
+ - - - - -
$form->{title}
- - -
+ - - $vendors - - - - - - - - - - + $vendors + + + + $contact + + + + @@ -523,13 +517,13 @@ sub form_header { - - + - - + diff --git a/bin/mozilla/is.pl b/bin/mozilla/is.pl index 81ba52141..f02e066dd 100644 --- a/bin/mozilla/is.pl +++ b/bin/mozilla/is.pl @@ -340,9 +340,18 @@ sub form_header { $labels{$item->{"cp_id"}} = $item->{"cp_name"} . ($item->{"cp_abteilung"} ? " ($item->{cp_abteilung})" : ""); } - my $contact = - NTI($cgi->popup_menu('-name' => 'cp_id', '-values' => \@values, - '-labels' => \%labels, '-default' => $form->{"cp_id"})); + my $contact; + if (scalar @values > 1) { + $contact = qq| + + + + |; + } %labels = (); @values = (); @@ -386,12 +395,16 @@ sub form_header { $item->{"shiptoname"} . " " . $item->{"shiptodepartment_1"}; } - my $shipto = qq| - - + + |; + } %labels = (); @values = (); @@ -401,7 +414,9 @@ sub form_header { } $form->{currency} = $form->{defaultcurrency} unless $form->{currency}; - my $currencies = qq| + my $currencies; + if (scalar @values) { + $currencies = qq| |; + } %labels = (); @values = (""); @@ -536,20 +552,15 @@ sub form_header { if ($form->{max_dunning_level}) { $dunning = qq| - - - + + + + |; } @@ -563,8 +574,8 @@ sub form_header { # with JavaScript Calendar $button1 = qq| - - |; #write Trigger @@ -585,18 +596,18 @@ sub form_header { # with JavaScript Calendar $button1 = qq| - - |; $button2 = qq| - - |; $button3 = qq| - - |; @@ -660,44 +671,27 @@ print qq| +
$form->{title}
+
| - . $locale->text('Contact Person') . qq|$contact
- - - - - - - - -
| . $locale->text('Credit Limit') . qq|$form->{creditlimit}| . $locale->text('Remaining') . qq|$form->{creditremaining}
-
| . $locale->text('Credit Limit') . qq|$form->{creditlimit}; | . $locale->text('Remaining') . qq| $form->{creditremaining}
| . $locale->text('Record in') . qq|
| . $locale->text('Order Date') . qq| +
| . $locale->text('Quotation Date') . qq| +
| . $locale->text('Project Number') . qq|
| . $locale->text('Contact Person') . qq|| . + NTI($cgi->popup_menu('-name' => 'cp_id', '-values' => \@values, + '-labels' => \%labels, '-default' => $form->{"cp_id"})) + . qq| +
| . $locale->text('Shipping Address') . qq|| . - NTI($cgi->popup_menu('-name' => 'shipto_id', '-values' => \@values, - '-labels' => \%labels, '-default' => $form->{"shipto_id"})) + my $shipto; + if (scalar @values > 1) { + $shipto = qq| +
| . $locale->text('Shipping Address') . qq|| . + NTI($cgi->popup_menu('-name' => 'shipto_id', '-values' => \@values, + '-labels' => \%labels, '-default' => $form->{"shipto_id"})) . qq|
| . $locale->text('Currency') . qq| | . @@ -409,6 +424,7 @@ sub form_header { '-values' => \@values, '-labels' => \%labels)) . qq|
- - - - - - - -
| . $locale->text('Max. Dunning Level') . qq|:$form->{max_dunning_level}| . $locale->text('Dunning Amount') . qq|:| - . $form->format_amount(\%myconfig, $form->{dunning_amount},2) - . qq|
-
| . $locale->text('Max. Dunning Level') . qq|: + $form->{max_dunning_level}; + | . $locale->text('Dunning Amount') . qq|: | + . $form->format_amount(\%myconfig, $form->{dunning_amount},2) + . qq| +
+ + + +
- - - - -
$form->{title}
- - -
- - - $customers - - - - - - - - - - - $shipto - - $business - $dunning + -
| - . $locale->text('Contact Person') . qq|$contact
- - - - - - - - -
| . $locale->text('Credit Limit') . qq|$form->{creditlimit}| . $locale->text('Remaining') . qq|$form->{creditremaining}
-
+ + + $customers + + + + + + $contact + $shipto + + + + + $dunning + $business @@ -746,7 +740,7 @@ print qq| # print qq|
| . $locale->text('Credit Limit') . qq|$form->{creditlimit}; | . $locale->text('Remaining') . qq| $form->{creditremaining}
| . $locale->text('Record in') . qq|
+ $employees $salesman @@ -784,8 +778,8 @@ print qq| - - + @@ -793,8 +787,8 @@ print qq| - - + diff --git a/bin/mozilla/oe.pl b/bin/mozilla/oe.pl index b5cd79d63..5b8275c64 100644 --- a/bin/mozilla/oe.pl +++ b/bin/mozilla/oe.pl @@ -338,13 +338,13 @@ sub form_header { # with JavaScript Calendar $button1 = qq| - - |; $button2 = qq| - - |; @@ -422,9 +422,19 @@ sub form_header { $labels{$item->{"cp_id"}} = $item->{"cp_name"} . ($item->{"cp_abteilung"} ? " ($item->{cp_abteilung})" : ""); } - my $contact = - NTI($cgi->popup_menu('-name' => 'cp_id', '-values' => \@values, - '-labels' => \%labels, '-default' => $form->{"cp_id"})); + + my $contact; + if (scalar @values > 1) { + $contact = qq| + + + + |; + } %labels = (); @values = (); @@ -469,12 +479,16 @@ sub form_header { $item->{"shiptoname"} . " " . $item->{"shiptodepartment_1"}; } - my $shipto = qq| - - + + |; + } %labels = (); @values = (""); @@ -545,9 +559,11 @@ sub form_header { push(@values, $item); $labels{$item} = $item; } - - $form->{currency} = $form->{defaultcurrency} unless $form->{currency}; - my $currencies = qq| + + $form->{currency} = $form->{defaultcurrency} unless $form->{currency}; + my $currencies; + if (scalar @values) { + $currencies = qq| |; - + } $form->{exchangerate} = $form->format_amount(\%myconfig, $form->{exchangerate}); @@ -801,10 +817,7 @@ sub form_header {
| . $locale->text('Order Date') . qq| +
| . $locale->text('Quotation Number') . qq|
| . $locale->text('Quotation Date') . qq| +
| . $locale->text('Customer Order Number') . qq| + text('button') . qq|> + text('button') . qq|>
| . $locale->text('Contact Person') . qq|| . + NTI($cgi->popup_menu('-name' => 'cp_id', '-values' => \@values, + '-labels' => \%labels, '-default' => $form->{"cp_id"})) + . qq| +
| . $locale->text('Shipping Address') . qq|| . - NTI($cgi->popup_menu('-name' => 'shipto_id', '-values' => \@values, - '-labels' => \%labels, '-default' => $form->{"shipto_id"})) + my $shipto; + if (scalar @values > 1) { + $shipto = qq| +
| . $locale->text('Shipping Address') . qq|| . + NTI($cgi->popup_menu('-name' => 'shipto_id', '-values' => \@values, + '-labels' => \%labels, '-default' => $form->{"shipto_id"})) . qq|
| . $locale->text('Currency') . qq| | . @@ -555,7 +571,7 @@ sub form_header { '-values' => \@values, '-labels' => \%labels)) . qq|
$vc - - - + $contact $creditremaining $business $dunning -- 2.20.1
| - . $locale->text('Contact Person') . qq|$contact