summaryrefslogtreecommitdiff
path: root/LedgerSMB
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2006-12-06 18:58:17 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2006-12-06 18:58:17 +0000
commitc8fa1ee1c3473f4b9c26a8a38a7ce226ca962e28 (patch)
treefb2cb69c9dcdcee0ce4485e928ccad9baa3e3519 /LedgerSMB
parent2290cdcd56f56b76cc980761c61e94bbac49a085 (diff)
Fixing number parsing tests.
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/branches/1.2@735 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'LedgerSMB')
-rwxr-xr-xLedgerSMB/Form.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/LedgerSMB/Form.pm b/LedgerSMB/Form.pm
index cf89c9e7..14a3ff97 100755
--- a/LedgerSMB/Form.pm
+++ b/LedgerSMB/Form.pm
@@ -480,7 +480,7 @@ sub parse_amount {
my ($self, $myconfig, $amount) = @_;
if (($amount eq '') or ($amount eq undef)) {
- return 0;
+ return undef;
}
if (UNIVERSAL::isa($amount, 'Math::BigFloat')){ # Amount may not be an object