From 09a8d6876080e8b3ee6f0570b7d60ce447d5e0eb Mon Sep 17 00:00:00 2001 From: Niclas Zimmermann Date: Thu, 11 Oct 2012 11:47:32 +0200 Subject: [PATCH] Falscher EK-Preis in Stammdaten-Berichte-Waren Behebt Bug #2019 Durch ein format_amount mit Argument -2 kam es dazu, dass EK-Preise falsch angezeigt wurden. --- bin/mozilla/ic.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/mozilla/ic.pl b/bin/mozilla/ic.pl index 3324551f6..5edc385c2 100644 --- a/bin/mozilla/ic.pl +++ b/bin/mozilla/ic.pl @@ -1331,11 +1331,11 @@ sub generate_report { $row->{description}->{link} = $edit_link; foreach (qw(sellprice listprice lastcost)) { - $row->{$_}{data} = $form->format_amount(\%myconfig, $ref->{$_}, -2); + $row->{$_}{data} = $form->format_amount(\%myconfig, $ref->{$_}, 2); $row->{"linetotal$_"}{data} = $form->format_amount(\%myconfig, $ref->{onhand} * $ref->{$_}, 2); } foreach ( @pricegroup_columns ) { - $row->{$_}{data} = $form->format_amount(\%myconfig, $ref->{"$_"}, -2); + $row->{$_}{data} = $form->format_amount(\%myconfig, $ref->{"$_"}, 2); }; -- 2.20.1