diff options
author | Ivan Kohler <ivan@freeside.biz> | 2018-11-12 18:48:07 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2018-11-12 18:48:07 -0800 |
commit | bfba4dcd1478d5ace640464b3e2e05531f3db5e0 (patch) | |
tree | 2ebe380b3290e3199fc631c472aa175156a64243 /FS/FS | |
parent | 4346f152b8d5376b3f5e09c1035cf16be3d9892f (diff) |
delete fees, RT#81713
Diffstat (limited to 'FS/FS')
-rw-r--r-- | FS/FS/cust_bill_pkg.pm | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/FS/FS/cust_bill_pkg.pm b/FS/FS/cust_bill_pkg.pm index d0d62bd..305ad63 100644 --- a/FS/FS/cust_bill_pkg.pm +++ b/FS/FS/cust_bill_pkg.pm @@ -499,13 +499,8 @@ sub delete { #not adding a cc surcharge, but this override lets us modify charged $cust_bill->{'Hash'}{'cc_surcharge_replace_hack'} = 1; - my $error = $cust_bill->replace; - if ( $error ) { - $dbh->rollback if $oldAutoCommit; - return $error; - } - - my $error = $self->SUPER::delete(@_); + my $error = $cust_bill->replace + || $self->SUPER::delete(@_); if ( $error ) { $dbh->rollback if $oldAutoCommit; return $error; |