diff options
author | ivan <ivan> | 2001-08-26 05:06:19 +0000 |
---|---|---|
committer | ivan <ivan> | 2001-08-26 05:06:19 +0000 |
commit | d36af3723e817c163383c36fa1e972c75a585e5a (patch) | |
tree | 3d6dcc3c56437c84cc549b23d8992c5a18cda5bb | |
parent | 736949d1e55783b2403b6e959eae1cbce6bf56f6 (diff) |
brainfart
-rw-r--r-- | FS/FS/cust_credit.pm | 4 | ||||
-rw-r--r-- | FS/FS/cust_main.pm | 14 |
2 files changed, 9 insertions, 9 deletions
diff --git a/FS/FS/cust_credit.pm b/FS/FS/cust_credit.pm index 7ea088835..d6de27c64 100644 --- a/FS/FS/cust_credit.pm +++ b/FS/FS/cust_credit.pm @@ -105,7 +105,7 @@ sub check { || $self->ut_number('custnum') || $self->ut_numbern('_date') || $self->ut_money('amount') - || $self->ut_text('reason'); + || $self->ut_textn('reason'); ; return $error if $error; @@ -150,7 +150,7 @@ sub credited { =head1 VERSION -$Id: cust_credit.pm,v 1.7 2001-08-26 05:05:25 ivan Exp $ +$Id: cust_credit.pm,v 1.8 2001-08-26 05:06:19 ivan Exp $ =head1 BUGS diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm index 23cae96ac..ba4b94c7d 100644 --- a/FS/FS/cust_main.pm +++ b/FS/FS/cust_main.pm @@ -280,14 +280,14 @@ sub insert { my $error = $prepay_credit->delete; if ( $error ) { $dbh->rollback if $oldAutoCommit; - return $error; + return "removing prepay_credit (transaction rolled back): $error"; } } my $error = $self->SUPER::insert; if ( $error ) { $dbh->rollback if $oldAutoCommit; - return $error; + return "inserting cust_main record (transaction rolled back): $error"; } if ( @param ) { # CUST_PKG_HASHREF @@ -297,7 +297,7 @@ sub insert { $error = $cust_pkg->insert; if ( $error ) { $dbh->rollback if $oldAutoCommit; - return $error; + return "inserting cust_pkg (transaction rolled back): $error"; } foreach my $svc_something ( @{$cust_pkgs->{$cust_pkg}} ) { $svc_something->pkgnum( $cust_pkg->pkgnum ); @@ -308,7 +308,7 @@ sub insert { $error = $svc_something->insert; if ( $error ) { $dbh->rollback if $oldAutoCommit; - return $error; + return "inserting svc_ (transaction rolled back): $error"; } } } @@ -324,7 +324,7 @@ sub insert { $error = $self->check_invoicing_list( $invoicing_list ); if ( $error ) { $dbh->rollback if $oldAutoCommit; - return $error; + return "checking invoicing_list (transaction rolled back): $error"; } $self->invoicing_list( $invoicing_list ); } @@ -337,7 +337,7 @@ sub insert { $error = $cust_credit->insert; if ( $error ) { $dbh->rollback if $oldAutoCommit; - return $error; + return "inserting credit (transaction rolled back): $error"; } } @@ -1365,7 +1365,7 @@ sub rebuild_fuzzyfiles { =head1 VERSION -$Id: cust_main.pm,v 1.20 2001-08-23 06:17:03 ivan Exp $ +$Id: cust_main.pm,v 1.21 2001-08-26 05:06:19 ivan Exp $ =head1 BUGS |