From: Moritz Bunkus Date: Fri, 11 May 2007 13:52:18 +0000 (+0000) Subject: Optik in den Einkaufs- und Verkaufsformularen etwas verbessert: X-Git-Tag: release-2.4.3^2~333 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=47916a374217afc8d84bd147f0fada5086970bae;p=kivitendo-erp.git Optik in den Einkaufs- und Verkaufsformularen etwas verbessert: 1. Drop-Down-Boxen "Ansprechpartner" und "Lieferadresse" werden direkt unterhalb der Kunden-/Lieferantenauswahlbox/-zeile angezeigt. 2. Die Zeile "Kreditlimit" wird wie alle anderen Zeilen auch in der linken Spalte (der "Beschreibungsspalte") angefangen und erstreckt sich nur über eine Zeile. 3. Die Zeile "höchste Mahnstufe" wird wie alle anderen Zeilen auch in der linken Spalte (der "Beschreibungsspalte") angefangen. 4. Die Drop-Down-Boxen für Ansprechpartner, Lieferadresse und Währungen werden nur angezeigt, wenn es dort auch etwas auszuwählen gibt. --- 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
| - . $locale->text('Contact Person') . qq|$contact