X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fpart_pkg.cgi;h=98ce71a28ea603fe314060fff3a0d8ce9fa16740;hb=56641843fc92d3d7ed61166d1e3d12ff691f0cde;hp=ce3e8547f714443495dd717277af2929041ca605;hpb=1d719ccff55b1a82208fdf44b6dcd2da96b3c42e;p=freeside.git
diff --git a/httemplate/edit/part_pkg.cgi b/httemplate/edit/part_pkg.cgi
index ce3e8547f..98ce71a28 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') ) {
+
+
+
+% } 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' => '(none)',
+ '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' ) {
|