Revert "RT# 24643 - fixed error in saving waive setup fee flag when not selected"
authorChristopher Burger <burgerc@freeside.biz>
Wed, 29 Nov 2017 01:17:28 +0000 (20:17 -0500)
committerChristopher Burger <burgerc@freeside.biz>
Tue, 12 Dec 2017 16:21:54 +0000 (11:21 -0500)
This reverts commit 7e2111f1ebc063df6a0afbb5903ae17a96ca3bb8.

FS/FS/cust_pkg.pm
httemplate/edit/process/change-cust_pkg.html

index b2cc874..c95d31b 100644 (file)
@@ -2363,8 +2363,7 @@ sub change {
     $same_pkgpart = 0;
   }
 
-  if ($opt->{'waive_setup'}) { $self->set('waive_setup', $opt->{'waive_setup'}) }
-  else { $self->set('waive_setup', ''); }
+  $self->set('waive_setup', $opt->{'waive_setup'}) if $opt->{'waive_setup'};
 
   # Before going any further here: if the package is still in the pre-setup
   # state, it's safe to modify it in place. No need to charge/credit for 
index 0e87ad8..3d50a13 100644 (file)
@@ -40,8 +40,6 @@ if ( $cgi->param('locationnum') == -1 ) {
   $change{'cust_location'} = $cust_location;
 }
 
-$change{waive_setup} = '';
-
 if ( $cgi->param('setup_discountnum') =~ /^(-?\d+)$/ ) { 
   if ( $1 == -2 ) {
     $change{waive_setup} = 'Y';