X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/d7c969e461a051692c0e763c4b4a9c98c76065fd..47916a374217afc8d84bd147f0fada5086970bae:/bin/mozilla/is.pl
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|
+
+ | | . $locale->text('Contact Person') . qq| |
+ | .
+ NTI($cgi->popup_menu('-name' => 'cp_id', '-values' => \@values,
+ '-labels' => \%labels, '-default' => $form->{"cp_id"}))
+ . qq|
+ |
+
|;
+ }
%labels = ();
@values = ();
@@ -386,12 +395,16 @@ sub form_header {
$item->{"shiptoname"} . " " . $item->{"shiptodepartment_1"};
}
- my $shipto = 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| | |;
+ }
%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|
| | . $locale->text('Currency') . qq| |
| .
@@ -409,6 +424,7 @@ sub form_header {
'-values' => \@values, '-labels' => \%labels)) . qq|
|
|;
+ }
%labels = ();
@values = ("");
@@ -536,20 +552,15 @@ sub form_header {
if ($form->{max_dunning_level}) {
$dunning = 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|
+ |
+
|;
}
@@ -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}
+
-
- | $form->{title} |
-
-
-
-
-
-
-
-
- $customers
-
-
-
-
- | |
- . $locale->text('Contact Person') . qq| |
- $contact |
-
-
- |
-
-
-
- | | . $locale->text('Credit Limit') . qq| |
- $form->{creditlimit} |
- |
- | . $locale->text('Remaining') . qq| |
- $form->{creditremaining} |
-
-
- |
- $shipto
-
- $business
- $dunning
+
+
+
+ $customers
+
+
+
+
+
+ $contact
+ $shipto
+
+ | | . $locale->text('Credit Limit') . qq| |
+ $form->{creditlimit}; | . $locale->text('Remaining') . qq| $form->{creditremaining} |
+
+ $dunning
+ $business
| | . $locale->text('Record in') . qq| |
|
@@ -746,7 +740,7 @@ print qq|
#
print qq|
|
-
+ |
| | |