X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=bin%2Fmozilla%2Fis.pl;h=f02e066ddc65eecdd8b134499bc287d2ae4da4fb;hb=47916a374217afc8d84bd147f0fada5086970bae;hp=7eb339804da84c31ca454300aca6b3b8798c3f60;hpb=3740b5032e01a83f12912887e66d0824c47aebcc;p=kivitendo-erp.git
diff --git a/bin/mozilla/is.pl b/bin/mozilla/is.pl
index 7eb339804..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 = ();
@@ -371,8 +380,8 @@ sub form_header {
my $customers = qq|
| . $locale->text('Customer') . qq|
| .
- (($myconfig{vclimit} == 1 )
- ? qq| |
+ (($myconfig{vclimit} <= scalar(@values))
+ ? qq| |
: (NTI($cgi->popup_menu('-name' => 'customer', '-default' => $form->{oldcustomer},
'-onChange' => 'document.getElementById(\'update_button\').click();',
'-values' => \@values, '-labels' => \%labels)))) . qq|
@@ -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|
$form->{selectAR}
@@ -746,7 +740,7 @@ print qq|
#
print qq|
-
+