summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2005-06-15 02:31:28 +0000
committerivan <ivan>2005-06-15 02:31:28 +0000
commitf668a9151404001b54757fab5cbbefb88079be6a (patch)
tree327d14764c6d784078127dbedd5167855d4402b5
parent34d94b50332bcb2196ced634a27b596287600a8c (diff)
fix error recharging w/prepaid card caused by rounding off of money value, closes: Bug#1237
-rw-r--r--FS/FS/cust_main.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm
index 775523a56..e3feefa91 100644
--- a/FS/FS/cust_main.pm
+++ b/FS/FS/cust_main.pm
@@ -687,7 +687,7 @@ sub insert_cust_pay_prepay {
my $cust_pay = new FS::cust_pay {
'custnum' => $self->custnum,
- 'paid' => $amount,
+ 'paid' => sprintf('%.2f', $amount),
#'_date' => #date the prepaid card was purchased???
'payby' => 'PREP',
'payinfo' => $payinfo,