From: Sven Schöling Date: Fri, 5 Sep 2014 14:50:14 +0000 (+0200) Subject: PriceSource: numerische felder in record_item korrekt parsen X-Git-Tag: release-3.2.0beta~163 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=6ebdd9ec20b731966bc78cad28ade89701af83eb;p=kivitendo-erp.git PriceSource: numerische felder in record_item korrekt parsen --- diff --git a/bin/mozilla/io.pl b/bin/mozilla/io.pl index 80fda8657..768572e74 100644 --- 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"}); }