]> wagnertech.de Git - kivitendo-erp.git/commitdiff
Merge branch 'master' of ssh://git-grichardson@lx-office.linet-services.de/~/lx-offic...
authorG. Richardson <information@lx-office-hosting.de>
Fri, 30 Apr 2010 08:41:12 +0000 (10:41 +0200)
committerG. Richardson <information@lx-office-hosting.de>
Fri, 30 Apr 2010 08:41:12 +0000 (10:41 +0200)
1  2 
bin/mozilla/io.pl

diff --combined bin/mozilla/io.pl
index 5666d63523b7ec71f8f39637d2d0d13591a995da,44ddc1675a70271ea6fdd3e5cf89123d215d20ef..46b7c28c06c7c077e76d983a009c6fa8973e0ef5
@@@ -675,7 -675,7 +675,7 @@@ sub item_selected 
    map {
      $form->{"${_}_$i"} =
        $form->format_amount(\%myconfig, $form->{"${_}_$i"}, $decimalplaces)
 -  } qw(sellprice listprice) if $form->{item} ne 'assembly';
 +  } qw(sellprice listprice lastcost) if $form->{item} ne 'assembly';
  
    # get pricegroups for parts
    IS->get_pricegroups_for_parts(\%myconfig, \%$form);
@@@ -1184,7 -1184,9 +1184,9 @@@ sub print_options 
      (!$options{no_html}) ?
        opthash("html", $form->{DF}{html}, "HTML") : undef,
      ($main::opendocument_templates && !$options{no_opendocument}) ?
-       opthash("opendocument",        $form->{DF}{opendocument},        $locale->text("OpenDocument/OASIS")) : undef;
+       opthash("opendocument",        $form->{DF}{opendocument},        $locale->text("OpenDocument/OASIS")) : undef,
+     ($main::excel_templates && !$options{no_excel}) ?
+       opthash("excel",               $form->{DF}{excel},               $locale->text("Excel")) : undef;
  
    push @LANGUAGE_ID,
      map { opthash($_->{id}, ($_->{id} eq $form->{language_id} ? 'selected' : ''), $_->{description}) } +{}, @{ $form->{languages} }
@@@ -1592,6 -1594,9 +1594,9 @@@ sub print_form 
    } elsif ($form->{"format"} =~ /opendocument/) {
      $form->{opendocument} = 1;
      $extension            = 'odt';
+   } elsif ($form->{"format"} =~ /excel/) {
+     $form->{excel} = 1;
+     $extension            = 'xls';
    }
  
    my $email_extension = '_email' if (($form->{media} eq 'email') && (-f "$myconfig{templates}/$form->{formname}_email$form->{language}${printer_code}.${extension}"));