Die Berichte über offene Forderungen und offene Verbindlichkeiten auf die Verwendung...
[kivitendo-erp.git] / bin / mozilla / ca.pl
index 12aef7a..23de61b 100644 (file)
@@ -410,12 +410,13 @@ sub list_transactions {
     $totaldebit  += $ca->{debit};
     $totalcredit += $ca->{credit};
 
-    $column_data{transdate}   = qq|<td>$ca->{transdate}</td>|;
-    $column_data{reference}   = qq|<td>$href</td>|;
-    $column_data{description} = qq|<td>$ca->{description}</td>|;
-
-    $i++;
+    $column_data{transdate}   = ($ca->{"index"} ne $last || $form->{sort} ne "transdate") ? qq|<td>$ca->{transdate}</td>| : qq|<td></td>|;
+    $column_data{reference}   = ($ca->{"index"} ne $last) ? qq|<td>$href</td>| : qq|<td></td>|;
+    $column_data{description} = ($ca->{"index"} ne $last) ? qq|<td>$ca->{description}</td>| : qq|<td></td>|;
+    
+    $i++ if($ca->{"index"} ne $last);
     $i %= 2;
+    $last=$ca->{"index"};
     print qq|
         <tr class=listrow$i>
 |;