X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/2ad2d77d0a1f588c03acc8fd05c1817b70a99e27..0e75a632271124a628dd600cb7eac739b595144d:/SL/DB/CustomVariable.pm diff --git a/SL/DB/CustomVariable.pm b/SL/DB/CustomVariable.pm index 08dd663c8..0971e6466 100644 --- a/SL/DB/CustomVariable.pm +++ b/SL/DB/CustomVariable.pm @@ -63,7 +63,10 @@ sub value { goto &bool_value if $type eq 'bool'; goto ×tamp_value if $type eq 'timestamp'; - goto &number_value if $type eq 'number'; + + if ($type eq 'number') { + return defined($self->number_value) ? $self->number_value * 1 : undef; + } if ( $type eq 'customer' ) { require SL::DB::Customer;