From: Bernd Bleßmann Date: Mon, 22 Oct 2012 12:43:06 +0000 (+0200) Subject: kein parse_amount für skonto_in_percent X-Git-Tag: release-3.0.0beta1~97^2 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=5adfb6910687b4af59a3a1b25795d07830a127da;p=kivitendo-erp.git kein parse_amount für skonto_in_percent Es wird direkt aus dem Wert aus der DB errechnet. --- 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});