summaryrefslogtreecommitdiff
path: root/LedgerSMB
diff options
context:
space:
mode:
Diffstat (limited to 'LedgerSMB')
-rwxr-xr-xLedgerSMB/Form.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/LedgerSMB/Form.pm b/LedgerSMB/Form.pm
index d3ed1ff4..989b4ad9 100755
--- a/LedgerSMB/Form.pm
+++ b/LedgerSMB/Form.pm
@@ -520,10 +520,10 @@ sub parse_amount {
$amount =~ s/,//g;
if ($amount =~ s/\((\d*\.?\d*)\)/$1/){
- $amount *= -1;
+ $amount = $1 * -1;
}
if ($amount =~ s/(\d*\.?\d*) DR/$1/){
- $amount *= -1;
+ $amount = $1 * -1;
}
$amount =~ s/ CR//;
$amount = new Math::BigFloat($amount);