Verkaufsbericht - Zeilenabstände verschönert und kompakter gemacht
authorG. Richardson <information@kivitendo-premium.de>
Mon, 6 May 2013 14:00:04 +0000 (16:00 +0200)
committerG. Richardson <information@kivitendo-premium.de>
Tue, 7 May 2013 11:33:51 +0000 (13:33 +0200)
wählt man ohne Artikelmodus nur die Zwischensumme der Hauptsortierung
aus, wird nun nicht mehr eine Leerzeile zwischen jedem Artikel
hinzugefügt.

bin/mozilla/vk.pl

index c6296e9..4870a99 100644 (file)
@@ -104,6 +104,11 @@ sub invoice_transactions {
 
   # can't currently be configured from report, empty line between main sortings
   my $addemptylines = 1;
+  
+  # don't add empty lines between mainsort subtotals when only subtotal_mainsort is selected
+  if ($form->{l_subtotal_mainsort} eq "Y" and not defined $form->{l_headers_mainsort} and not defined $form->{l_headers_subsort} and not defined $form->{l_subtotal_subsort} ) {
+    $addemptylines = 0 
+  };
 
   if ( $form->{customer} =~ /--/ ) {
     # Felddaten kommen aus Dropdownbox