X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fpart_pkg.cgi;h=7c6115423bbd512f6eb5c97dd96d982ff6e870dc;hb=d6dbf288fd8ea42ebd5171d80817356248cf22ce;hp=a84fafa1b1983c9f1464e2010cb5690d39437c05;hpb=83a6a677f62ca501011d9bac6371344dbb5a13b3;p=freeside.git diff --git a/httemplate/edit/part_pkg.cgi b/httemplate/edit/part_pkg.cgi index a84fafa1b..7c6115423 100755 --- a/httemplate/edit/part_pkg.cgi +++ b/httemplate/edit/part_pkg.cgi @@ -89,7 +89,10 @@ Package information - <% include( '/elements/tr-select-pkg_class.html', $part_pkg->classnum ) %> + <% include( '/elements/tr-select-pkg_class.html', + 'curr_value' => $part_pkg->classnum, + ) + %> Promotional code @@ -159,25 +162,34 @@ Line-item revenue recognition -Reseller information -<% ntable("#cccccc", 2) %> - - <% 'Agent Types' %> - - <% include( '/elements/select-table.html', - 'element_name' => 'agent_type', - 'table' => 'agent_type', - 'name_col' => 'atype', - 'value' => \@agent_type, - 'empty_label' => '(none)', - 'element_etc' => 'multiple size="10"', - ) - %> - - - +% if ( $cgi->param('clone') || $conf->exists('agent_defaultpkg') ) { + + + +% } else { + + Reseller information + <% ntable("#cccccc", 2) %> + + <% 'Agent Types' %> + + <% include( '/elements/select-table.html', + 'element_name' => 'agent_type', + 'table' => 'agent_type', + 'name_col' => 'atype', + 'value' => \@agent_type, + 'empty_label' => 'select agent types', + 'element_etc' => 'multiple size="10"', + ) + %> + + + + +% } + -% + % %my $thead = "\n\n". ntable('#cccccc', 2). % 'Quan.'; @@ -290,7 +302,7 @@ Reseller information % 'form_action' => 'process/part_pkg.cgi', % 'form_elements' => \@form_elements, % 'form_text' => [ qw(pkg comment promo_code clone pkgnum pkgpart), -% qw(pay_weight credit_weight), +% qw(pay_weight credit_weight), #keys(%weight), % @fixups, % ], % 'form_checkbox' => [ qw(setuptax recurtax disabled) ], @@ -323,10 +335,12 @@ Reseller information % % $html .= ''. $href->{$field}{'name'}. ''; % +% my $format = sub { shift }; +% $format = $href->{$field}{'format'} if exists($href->{$field}{'format'}); % if ( ! exists($href->{$field}{'type'}) ) { % $html .= qq!!; % } elsif ( $href->{$field}{'type'} eq 'checkbox' ) {