projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
af723d0
)
move up next bill date on unsuspend
author
ivan
<ivan>
Fri, 25 Jun 2004 08:44:54 +0000
(08:44 +0000)
committer
ivan
<ivan>
Fri, 25 Jun 2004 08:44:54 +0000
(08:44 +0000)
FS/FS/cust_pkg.pm
patch
|
blob
|
history
diff --git
a/FS/FS/cust_pkg.pm
b/FS/FS/cust_pkg.pm
index
db0f7d4
..
fb41dfc
100644
(file)
--- a/
FS/FS/cust_pkg.pm
+++ b/
FS/FS/cust_pkg.pm
@@
-452,7
+452,10
@@
sub unsuspend {
unless ( ! $self->getfield('susp') ) {
my %hash = $self->hash;
unless ( ! $self->getfield('susp') ) {
my %hash = $self->hash;
+ my $inactive = time - $hash{'susp'};
$hash{'susp'} = '';
$hash{'susp'} = '';
+ $hash{'bill'} = ( $hash{'bill'} || $hash{'setup'} ) + $inactive
+ if $inactive > 0 && ( $hash{'bill'} || $hash{'setup'} );
my $new = new FS::cust_pkg ( \%hash );
$error = $new->replace($self);
if ( $error ) {
my $new = new FS::cust_pkg ( \%hash );
$error = $new->replace($self);
if ( $error ) {