X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Felements%2Ftr-select-cust-part_pkg.html;h=f4af405fcf7875faff6938e3d133a024af6ad947;hp=0db989aed8a72268519882a61518c7b4699d60e8;hb=7b0bbc4117a7959b9f7b7b2cf999b8188ba34160;hpb=edea94b6bd41a3fceac47267a3df3dc7fcf7c565 diff --git a/httemplate/elements/tr-select-cust-part_pkg.html b/httemplate/elements/tr-select-cust-part_pkg.html index 0db989aed..f4af405fc 100644 --- a/httemplate/elements/tr-select-cust-part_pkg.html +++ b/httemplate/elements/tr-select-cust-part_pkg.html @@ -53,9 +53,11 @@ what.form.pkgpart.disabled = ''; //re-enable part_pkg dropdown % if ( $opt{'curr_value'} ) { - what.form.pkgpart.value = <% $opt{'curr_value'} %>; + what.form.pkgpart.value = <% $opt{'curr_value'} %>; % } + pkg_changed(); + } get_part_pkg( <% $cust_main ? $cust_main->custnum : '0' %>, @@ -84,18 +86,19 @@ % } else { # so that the rest of the page works correctly - + % } <% mt('Package') |h %> <& /elements/select-cust-part_pkg.html, - 'curr_value' => $opt{'curr_value'}, #$pkgpart - 'classnum' => $opt{'classnum'}, - 'cust_main' => $opt{'cust_main'}, #$cust_main - 'prospect_main' => $opt{'prospect_main'}, #$prospect_main - 'onchange' => 'pkg_changed', + 'curr_value' => $opt{'curr_value'}, #$pkgpart + 'classnum' => $opt{'classnum'}, + 'cust_main' => $opt{'cust_main'}, #$cust_main + 'prospect_main' => $opt{'prospect_main'}, #$prospect_main + 'onchange' => 'pkg_changed', + 'label_callback' => sub { shift->pkg_comment }, &>