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