[freeside-commits] branch master updated. 3ee7348febaf61d9662b463aad3053210593b06b

Mark Wells mark at 420.am
Wed Mar 27 12:02:37 PDT 2013


The branch, master has been updated
       via  3ee7348febaf61d9662b463aad3053210593b06b (commit)
      from  546fd20829df7ab53dd60b6f7589058789acd77f (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 3ee7348febaf61d9662b463aad3053210593b06b
Author: Mark Wells <mark at freeside.biz>
Date:   Wed Mar 27 11:54:03 2013 -0700

    keep waive_setup flag when changing package, #613

diff --git a/FS/FS/cust_pkg.pm b/FS/FS/cust_pkg.pm
index 374cf7a..9e188af 100644
--- a/FS/FS/cust_pkg.pm
+++ b/FS/FS/cust_pkg.pm
@@ -1781,6 +1781,12 @@ sub change {
   # (i.e. customer default location)
   $opt->{'locationnum'} = $self->locationnum if !exists($opt->{'locationnum'});
 
+  # usually this doesn't matter.  the two cases where it does are:
+  # 1. unused_credit_change + pkgpart change + setup fee on the new package
+  # and
+  # 2. (more importantly) changing a package before it's billed
+  $hash{'waive_setup'} = $self->waive_setup;
+
   # Create the new package.
   my $cust_pkg = new FS::cust_pkg {
     custnum      => $self->custnum,

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/cust_pkg.pm |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)




More information about the freeside-commits mailing list