From 0e04ddd7e3ff23d051838617844698a39f680969 Mon Sep 17 00:00:00 2001 From: Rolf Fluehmann Date: Thu, 18 May 2017 13:20:55 +0200 Subject: [PATCH] =?utf8?q?Anpassung=20der=20CH-Erfolgsrechnung=20f=C3=BCr?= =?utf8?q?=20nicht=20CH-Ausgabeformate?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/RP.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SL/RP.pm b/SL/RP.pm index ef43307a6..79f0403f2 100644 --- a/SL/RP.pm +++ b/SL/RP.pm @@ -1914,13 +1914,13 @@ sub erfolgsrechnung { foreach my $account (@{$category{accounts}}) { $account->{total} += get_total_ch($account->{id}, $fromdate, $todate); $category{total} += $account->{total}; - $account->{total} = $form->format_amount($myconfig, $form->parse_amount($myconfig, $account->{total}), 2); + $account->{total} = $form->format_amount($myconfig, $form->round_amount($account->{total}, 2), 2); } $form->{total} += $category{total}; - $category{total} = $form->format_amount($myconfig, $form->parse_amount($myconfig, $category{total}), 2); + $category{total} = $form->format_amount($myconfig, $form->round_amount($category{total}, 2), 2); push(@{$form->{categories}}, \%category); } - $form->{total} = $form->format_amount($myconfig, $form->parse_amount($myconfig, $form->{total}), 2); + $form->{total} = $form->format_amount($myconfig, $form->round_amount($form->{total}, 2), 2); $main::lxdebug->leave_sub(); return {}; -- 2.20.1