diff --git a/scripts/payment.pl b/scripts/payment.pl index 5733c7fc58..4758eb4115 100644 --- a/scripts/payment.pl +++ b/scripts/payment.pl @@ -1330,6 +1330,9 @@ sub post_payment { # Now we split the account selected options, using the namespace the if statement # provides for us. $request->{"overpayment_account_$i"} =~ /^(\d+)--*/; + $request->{"overpayment_account_$i"} = $request->parse_amount( + amount => $request->{"overpayment_account_$i"} + ); my $id = $1; $request->{"overpayment_cash_account_$i"} =~ /^(\d+)--*/; my $cashid = $1;