[freeside-commits] branch FREESIDE_3_BRANCH updated. b16a852177d55dc3e5dfa5d290c2eb51417c1ee9
Ivan
ivan at 420.am
Tue Apr 22 18:58:27 PDT 2014
The branch, FREESIDE_3_BRANCH has been updated
via b16a852177d55dc3e5dfa5d290c2eb51417c1ee9 (commit)
from 7db3b36f7ecde4fc4425749db64cf75d709f3b7c (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit b16a852177d55dc3e5dfa5d290c2eb51417c1ee9
Author: Ivan Kohler <ivan at freeside.biz>
Date: Tue Apr 22 18:58:25 2014 -0700
even with flag set to do so, don't adjust bill dates forward on a package which is billing while suspended, RT#27882
diff --git a/FS/FS/cust_pkg.pm b/FS/FS/cust_pkg.pm
index 82cb479..098baf2 100644
--- a/FS/FS/cust_pkg.pm
+++ b/FS/FS/cust_pkg.pm
@@ -1566,16 +1566,17 @@ sub unsuspend {
my $conf = new FS::Conf;
- if ( $inactive > 0 &&
- ( $hash{'bill'} || $hash{'setup'} ) &&
- ( $opt{'adjust_next_bill'} ||
- $conf->exists('unsuspend-always_adjust_next_bill_date') ||
- $self->part_pkg->option('unsuspend_adjust_bill', 1) )
- ) {
-
- $hash{'bill'} = ( $hash{'bill'} || $hash{'setup'} ) + $inactive;
-
- }
+ $hash{'bill'} = ( $hash{'bill'} || $hash{'setup'} ) + $inactive
+ if $inactive > 0
+ && ( $hash{'bill'} || $hash{'setup'} )
+ && ( $opt{'adjust_next_bill'}
+ || $conf->exists('unsuspend-always_adjust_next_bill_date')
+ || $self->part_pkg->option('unsuspend_adjust_bill', 1)
+ )
+ && ! $self->option('suspend_bill',1)
+ && ( ! $self->part_pkg->option('suspend_bill',1)
+ || $self->option('no_suspend_bill',1)
+ );
$hash{'susp'} = '';
$hash{'adjourn'} = '' if $hash{'adjourn'} and $hash{'adjourn'} < time;
-----------------------------------------------------------------------
Summary of changes:
FS/FS/cust_pkg.pm | 21 +++++++++++----------
1 files changed, 11 insertions(+), 10 deletions(-)
More information about the freeside-commits
mailing list