X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/8b797f8bb9e4b7159b224670145fc6939f14bb2d..2a4980a82c334d9836da4c990a6ce3f5fb61ebb9:/bin/mozilla/ic.pl
diff --git a/bin/mozilla/ic.pl b/bin/mozilla/ic.pl
index 1d0c51950..714baea45 100644
--- a/bin/mozilla/ic.pl
+++ b/bin/mozilla/ic.pl
@@ -75,11 +75,6 @@ sub add {
sub search {
$lxdebug->enter_sub();
- my ($button1, $button2, $onhand, $makemodel, $serialnumber, $l_serialnumber, $toplevel, $bought);
-
- $form->{title} = (ucfirst $form->{searchitems}) . "s";
- $form->{title} = $locale->text($form->{title});
-
# switch for backward sorting
$form->{revers} = 0;
@@ -92,310 +87,19 @@ sub search {
# $locale->text('Parts')
# $locale->text('Services')
- # use JavaScript Calendar or not
- $form->{jsscript} = 1;
- my $jsscript = "";
- if ($form->{jsscript}) {
-
- # with JavaScript Calendar
- $button1 = qq|
-
|
- text('button') . qq|> |
- |;
- $button2 = qq|
- |
- text('button') . qq|> |
- |;
-
- #write Trigger
- $jsscript = Form->write_trigger(\%myconfig, "2", "transdatefrom", "BL", "trigger1", "transdateto", "BL", "trigger2");
- } else {
-
- # without JavaScript Calendar
- $button1 = qq| | |;
- $button2 = qq| | |;
- }
-
- unless ($form->{searchitems} eq 'service') {
-
- $onhand = qq| | . $locale->text('On Hand') . qq|
- | . $locale->text('Short') . qq|
-|;
-
- $makemodel = qq|
-
- | | . $locale->text('Make') . qq| | |
- | . $locale->text('Model') . qq| | |
-
-|;
-
- $serialnumber = qq|
- | . $locale->text('Serial Number') . qq| | |
-|;
+ my $is_service = $form->{searchitems} eq 'service';
+ my $is_assembly = $form->{searchitems} eq 'assembly';
- $l_serialnumber = qq|
- | . $locale->text('Serial Number') . qq| |
-|;
-
- }
-
- if ($form->{searchitems} eq 'assembly') {
-
- $form->{title} = $locale->text('Assemblies');
-
- $toplevel = qq|
-
- |
-
- |
- . $locale->text('Top Level') . qq|
- |
- . $locale->text('Individual Items') . qq|
- |
-
-|;
-
- $bought = qq|
-
- |
-
-
-
- |
-
- |
- |
- | . $locale->text('From') . qq| |
- $button1
- | . $locale->text('To (time)') . qq| |
- $button2
-
-
- |
-
-|;
-
- } else {
+ $form->{title} = (ucfirst $form->{searchitems}) . "s";
+ $form->{title} = $locale->text($form->{title});
+ $form->{title} = $locale->text('Assemblies') if $is_assembly;
- $bought = qq|
-
- |
-
-
-
- |
-
- |
- |
-
-
-
- | | . $locale->text('From') . qq| |
- $button1
- | . $locale->text('To (time)') . qq| |
- $button2
-
-
- |
-
-
- |
-
-|;
- }
+ $form->{jsscript} = 1;
$form->header;
- print qq|
-
-
-
-
-
-