pod error
[freeside.git] / FS / FS / cust_main.pm
index 775523a..1bbf191 100644 (file)
@@ -396,7 +396,7 @@ sub insert {
   }
 
   if ( $amount ) {
-    $error = $self->insert_prepay($amount, $prepay_identifier);
+    $error = $self->insert_cust_pay_prepay($amount, $prepay_identifier);
     if ( $error ) {
       $dbh->rollback if $oldAutoCommit;
       return "inserting prepayment (transaction rolled back): $error";
@@ -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,