$totaldebit += $ca->{debit};
$totalcredit += $ca->{credit};
- $column_data{transdate} = ($ca->{"reference"} ne $last || $form->{sort} ne "transdate") ? qq|<td>$ca->{transdate}</td>| : qq|<td></td>|;
- $column_data{reference} = ($ca->{"reference"} ne $last) ? qq|<td>$href</td>| : qq|<td></td>|;
- $column_data{description} = ($ca->{"reference"} ne $last) ? qq|<td>$ca->{description}</td>| : qq|<td></td>|;
+ $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->{"reference"} ne $last);
+ $i++ if($ca->{"index"} ne $last);
$i %= 2;
- $last=$ca->{"reference"};
+ $last=$ca->{"index"};
print qq|
<tr class=listrow$i>
|;