summaryrefslogtreecommitdiff
path: root/LedgerSMB
diff options
context:
space:
mode:
Diffstat (limited to 'LedgerSMB')
-rw-r--r--LedgerSMB/Form.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/LedgerSMB/Form.pm b/LedgerSMB/Form.pm
index 7cceffea..9e7c7748 100644
--- a/LedgerSMB/Form.pm
+++ b/LedgerSMB/Form.pm
@@ -856,7 +856,8 @@ sub db_parse_numeric {
my @types = @{$sth->{TYPE}};
my @names = @{$sth->{NAME_lc}};
for (0 .. $#names){
- if ($types[$_] == 3){
+ # numeric float4/real
+ if ($types[$_] == 3 or $types[$_] ==2) {
$arrayref->[$_] = Math::BigFloat->new($arrayref->[$_])
if defined $arrayref;
$hashref->{$names[$_]} = Math::BigFloat->new($hashref->{$names[$_]})