"<td><a href=$href&accounttype=gifi>$ca->{gifi_accno}</a> </td>";
$column_data{description} = "<td>$ca->{description}</td>";
}
-
+ my $debit = "";
+ my $credit = "";
+ if ($ca->{debit}) {
+ $debit = $form->format_amount(\%myconfig, $ca->{debit}, 2, " ");
+ }
+ if ($ca->{credit}) {
+ $credit = $form->format_amount(\%myconfig, $ca->{credit}, 2, " ");
+ }
$column_data{debit} =
"<td align=right>"
- . $form->format_amount(\%myconfig, $ca->{debit}, 2, " ")
+ . $debit
. "</td>\n";
$column_data{credit} =
"<td align=right>"
- . $form->format_amount(\%myconfig, $ca->{credit}, 2, " ")
+ . $credit
. "</td>\n";
$totaldebit += $ca->{debit};