summaryrefslogtreecommitdiff
path: root/LedgerSMB/DBObject/Payment.pm
diff options
context:
space:
mode:
Diffstat (limited to 'LedgerSMB/DBObject/Payment.pm')
-rw-r--r--LedgerSMB/DBObject/Payment.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/LedgerSMB/DBObject/Payment.pm b/LedgerSMB/DBObject/Payment.pm
index 7e85e049..02f3aad5 100644
--- a/LedgerSMB/DBObject/Payment.pm
+++ b/LedgerSMB/DBObject/Payment.pm
@@ -472,7 +472,7 @@ sub post_bulk {
if ($invoice_subarray !~ /^\{\d+\,\-?\d*\.?\d+\}$/){
$self->error("Invalid subarray: $invoice_subarray");
}
- $invoice_subarray =~ s/[^0123456789{},.]//;
+ $invoice_subarray =~ s/[^0123456789{},.-]//;
if ($invoice_array eq '{}'){ # Omit comma
$invoice_array = "{$invoice_subarray}";
} else {