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:
2ae70bd
)
make_record(_item): discount-Feld richtig behandeln
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Thu, 27 Feb 2020 14:48:16 +0000
(15:48 +0100)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Fri, 28 Feb 2020 12:43:07 +0000
(13:43 +0100)
In der Maske und daher in $::form stehen die Werte in Prozent, in den
DB-Spalten und damit den Rose-Attributen werden sie aber als Faktor
gespeichert, sprich z.B. 0.05 für 5%.
bin/mozilla/io.pl
patch
|
blob
|
history
diff --git
a/bin/mozilla/io.pl
b/bin/mozilla/io.pl
index
9fe058a
..
f8c660d
100644
(file)
--- a/
bin/mozilla/io.pl
+++ b/
bin/mozilla/io.pl
@@
-1904,6
+1904,11
@@
sub _make_record_item {
} else {
$obj->$method($value);
}
+
+ if ($method eq 'discount') {
+ $obj->discount($obj->discount / 100.0);
+ }
+
} else {
$obj->{__additional_form_attributes}{$method} = $value;
}