X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fmisc%2Fchange_pkg.cgi;h=2470ee135440c2fcc0e3fdb4c4836ce3060416b9;hp=ce83480006f99245fdcccfcae566f8a86197fee4;hb=73689cc60458a87931d2d3d304d650d69bcf690c;hpb=6db14d0fe65daec3d136edaa33a32a1fb24ba06a diff --git a/httemplate/misc/change_pkg.cgi b/httemplate/misc/change_pkg.cgi index ce8348000..2470ee135 100755 --- a/httemplate/misc/change_pkg.cgi +++ b/httemplate/misc/change_pkg.cgi @@ -8,7 +8,7 @@ <% mt('Package') |h %> -<% ntable('#cccccc') %> + @@ -19,21 +19,33 @@ <& /elements/tr-select-cust-part_pkg.html, 'pre_label' => emt('New'), - 'curr_value' => scalar($cgi->param('pkgpart')), + 'curr_value' => scalar($cgi->param('pkgpart')) || $cust_pkg->pkgpart, 'classnum' => $part_pkg->classnum, 'cust_main' => $cust_main, &> <& /elements/tr-input-pkg-quantity.html, - 'curr_value' => $cust_pkg->quantity + 'curr_value' => scalar($cgi->param('quantity')) || $cust_pkg->quantity &> +% if ($use_contract_end) { + <& /elements/tr-input-date-field.html, { + 'name' => 'contract_end', + 'value' => ($cgi->param('contract_end') || $cust_pkg->get('contract_end')), + 'label' => 'Contract End', + } &> +% } +
<% mt('Current package') |h %>

+<& /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') %> +