RT# 79284 Fix UI bug for Change Package screen
authorMitch Jackson <mitch@freeside.biz>
Sat, 24 Feb 2018 00:09:38 +0000 (00:09 +0000)
committerMitch Jackson <mitch@freeside.biz>
Sat, 24 Feb 2018 00:09:38 +0000 (00:09 +0000)
FS/FS/cust_pkg.pm
httemplate/edit/process/change-cust_pkg.html

index 9accc34..604b499 100644 (file)
@@ -3017,6 +3017,7 @@ sub _parse_new_discounts {
         discountnum => $opt->{"${type}_discountnum"},
         amount      => $opt->{"${type}_discountnum_amount"},
         percent     => $opt->{"${type}_discountnum_percent"},
+        months      => $opt->{"${type}_discountnum_months"},
       };
     }
 
index 02b01f8..c8c6236 100644 (file)
@@ -80,6 +80,7 @@ for my $type (qw|setup_discountnum recur_discountnum|) {
     $change{$type} = $dnum;
     $change{"${type}_amount"}  = $cgi->param("${type}_amount");
     $change{"${type}_percent"} = $cgi->param("${type}_percent");
+    $change{"${type}_months"}  = $cgi->param("${type}_months");
   } elsif ($dnum eq '') {
     # Set discount as no discount
     $change{"${type}"} = 0;