summaryrefslogtreecommitdiff
path: root/LedgerSMB/Form.pm
diff options
context:
space:
mode:
Diffstat (limited to 'LedgerSMB/Form.pm')
-rwxr-xr-xLedgerSMB/Form.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/LedgerSMB/Form.pm b/LedgerSMB/Form.pm
index 65923296..4b30c317 100755
--- a/LedgerSMB/Form.pm
+++ b/LedgerSMB/Form.pm
@@ -471,8 +471,8 @@ sub parse_amount {
my ($self, $myconfig, $amount) = @_;
- if ($amount eq '') {
- return undef;
+ if ($amount eq '' or $amount == undef){
+ return 0;
}
if (UNIVERSAL::isa($amount, 'Math::BigFloat')){ # Amount may not be an object