}
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";
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,