[freeside-commits] freeside/FS/FS cust_credit.pm,1.24,1.25
Jeff Finucane,420,,
jeff at wavetail.420.am
Wed Feb 28 21:24:49 PST 2007
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail:/tmp/cvs-serv13104/FS/FS
Modified Files:
cust_credit.pm
Log Message:
dangling cust_credit_refund not allowed
Index: cust_credit.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_credit.pm,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- cust_credit.pm 13 Sep 2006 14:53:01 -0000 1.24
+++ cust_credit.pm 1 Mar 2007 05:24:46 -0000 1.25
@@ -164,6 +164,14 @@
}
}
+ foreach my $cust_credit_refund ( $self->cust_credit_refund ) {
+ my $error = $cust_credit_refund->delete;
+ if ( $error ) {
+ $dbh->rollback if $oldAutoCommit;
+ return $error;
+ }
+ }
+
my $error = $self->SUPER::delete(@_);
if ( $error ) {
$dbh->rollback if $oldAutoCommit;
More information about the freeside-commits
mailing list