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:
ba4744a
)
PriceSource: numerische felder in record_item korrekt parsen
author
Sven Schöling
<s.schoeling@linet-services.de>
Fri, 5 Sep 2014 14:50:14 +0000
(16:50 +0200)
committer
Sven Schöling
<s.schoeling@linet-services.de>
Thu, 18 Dec 2014 15:18:22 +0000
(16:18 +0100)
bin/mozilla/io.pl
patch
|
blob
|
history
diff --git
a/bin/mozilla/io.pl
b/bin/mozilla/io.pl
index
80fda86
..
768572e
100644
(file)
--- a/
bin/mozilla/io.pl
+++ b/
bin/mozilla/io.pl
@@
-1939,6
+1939,8
@@
sub _make_record_item {
next unless $obj->meta->column($method);
if ($obj->meta->column($method)->isa('Rose::DB::Object::Metadata::Column::Date')) {
$obj->${\"$method\_as_date"}($::form->{"$method\_$row"});
+ } elsif ((ref $obj->meta->column($method)) =~ /^Rose::DB::Object::Metadata::Column::(?:Numeric|Float|DoublePrecsion)$/) {
+ $obj->${\"$method\_as_number"}($::form->{"$method\_$row"});
} else {
$obj->$method($::form->{"$method\_$row"});
}