From 30a70ccf6975394a86d2ff036fe1d0fb34fcda04 Mon Sep 17 00:00:00 2001 From: Philip Reetz Date: Fri, 15 Dec 2006 10:39:12 +0000 Subject: [PATCH] Kontenuebersicht angepasst wegen neuer format_amount --- bin/mozilla/ca.pl | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/bin/mozilla/ca.pl b/bin/mozilla/ca.pl index de360495c..45c8cc755 100644 --- a/bin/mozilla/ca.pl +++ b/bin/mozilla/ca.pl @@ -125,14 +125,21 @@ sub chart_of_accounts { "$ca->{gifi_accno} "; $column_data{description} = "$ca->{description}"; } - + 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} = "" - . $form->format_amount(\%myconfig, $ca->{debit}, 2, " ") + . $debit . "\n"; $column_data{credit} = "" - . $form->format_amount(\%myconfig, $ca->{credit}, 2, " ") + . $credit . "\n"; $totaldebit += $ca->{debit}; -- 2.20.1