X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fmisc%2Fchange_pkg.cgi;h=9729c6b5fa5faebdbe8f19a4c8a8d02c849e2155;hb=d9880fb208858d882d02462bba4c3c57db3b377c;hp=b562d24cd9f5b60d4b749b8547904d4e74a867c7;hpb=2b2dd969f3c18751afc583ad1e836ab8e6f73b5d;p=freeside.git diff --git a/httemplate/misc/change_pkg.cgi b/httemplate/misc/change_pkg.cgi index b562d24cd..9729c6b5f 100755 --- a/httemplate/misc/change_pkg.cgi +++ b/httemplate/misc/change_pkg.cgi @@ -8,7 +8,7 @@ <% mt('Package') |h %> -<% ntable('#cccccc') %> + @@ -39,14 +39,13 @@
<% mt('Current package') |h %>

-<% include('/misc/cust_pkg_usageprice.html', +<& /elements/table-cust_pkg_usageprice.html, 'pkgpart' => (scalar($cgi->param('pkgpart')) || $cust_pkg->pkgpart), 'pkgnum' => ($cust_pkg->change_to_pkgnum || $pkgnum), - ) %> -
+&> <% mt('Change') |h %> -<% ntable('#cccccc') %> + + " @@ -159,4 +188,14 @@ if ( $cust_pkg->change_to_pkgnum ) { } $title = "Edit Scheduled Package Change"; } + +# Get current values of discounts for selectboxes +my %discount = (setup => undef, recur => undef); +$discount{$_->setuprecur} = $_->discountnum + for qsearch('cust_pkg_discount', { + pkgnum => $cust_pkg->pkgnum, + disabled => '', + }); +$discount{setup} = '-2' if $cust_pkg->waive_setup; +