projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9580d23
)
Form::round_amount: nicht initialisierte Variable $places
author
Sven Schöling
<s.schoeling@linet-services.de>
Tue, 22 Mar 2016 12:02:43 +0000
(13:02 +0100)
committer
Sven Schöling
<s.schoeling@linet-services.de>
Tue, 22 Mar 2016 12:02:43 +0000
(13:02 +0100)
SL/Form.pm
patch
|
blob
|
history
diff --git
a/SL/Form.pm
b/SL/Form.pm
index
cc98814
..
1f380b7
100644
(file)
--- a/
SL/Form.pm
+++ b/
SL/Form.pm
@@
-951,6
+951,8
@@
sub round_amount {
return 0 if !defined $amount;
+ $places //= 0;
+
if ($adjust) {
my $precision = $::instance_conf->get_precision || 0.01;
return $self->round_amount( $self->round_amount($amount / $precision, 0) * $precision, $places);