From 5adfb6910687b4af59a3a1b25795d07830a127da Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Mon, 22 Oct 2012 14:43:06 +0200 Subject: [PATCH] =?utf8?q?kein=20parse=5Famount=20f=C3=BCr=20skonto=5Fin?= =?utf8?q?=5Fpercent?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Es wird direkt aus dem Wert aus der DB errechnet. --- SL/Form.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/SL/Form.pm b/SL/Form.pm index 3660bf88a..8915ca20f 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -1741,10 +1741,9 @@ sub set_payment_options { $amounts{invtotal} = $self->{invtotal}; $amounts{total} = $self->{total}; } - $amounts{skonto_in_percent} = 100.0 * $self->{percent_skonto}; - map { $amounts{$_} = $self->parse_amount($myconfig, $amounts{$_}) } keys %amounts; + $amounts{skonto_in_percent} = 100.0 * $self->{percent_skonto}; $amounts{skonto_amount} = $amounts{invtotal} * $self->{percent_skonto}; $amounts{invtotal_wo_skonto} = $amounts{invtotal} * (1 - $self->{percent_skonto}); $amounts{total_wo_skonto} = $amounts{total} * (1 - $self->{percent_skonto}); -- 2.20.1