X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fpart_pkg.cgi;h=b3c389c9da459065b60194b8e386349298692013;hb=e9e81be2ffe4c08e52ccd9609838ffddab0ed6f2;hp=cd07ac3f5d34d0741efc4cfc1cb8e01f371991e5;hpb=3544d031fc03d9efcae02755718cb63a96ece5db;p=freeside.git diff --git a/httemplate/edit/part_pkg.cgi b/httemplate/edit/part_pkg.cgi index cd07ac3f5..b3c389c9d 100755 --- a/httemplate/edit/part_pkg.cgi +++ b/httemplate/edit/part_pkg.cgi @@ -93,7 +93,12 @@ Package information - + + Promotional code + + + + Disable new orders @@ -231,7 +236,7 @@ tie my %plans, 'Tie::IxHash', %{ FS::part_pkg::plan_info() }; my %plandata = map { /^(\w+)=(.*)$/; ( $1 => $2 ); } split("\n", ($clone_part_pkg||$part_pkg)->plandata ); -warn join("\n", map { "$_: $plandata{$_}" } keys %plandata ). "\n"; +#warn join("\n", map { "$_: $plandata{$_}" } keys %plandata ). "\n"; tie my %options, 'Tie::IxHash', map { $_=>$plans{$_}->{'name'} } keys %plans; @@ -257,7 +262,9 @@ my $widget = new HTML::Widgets::SelectLayers( 'options' => \%options, 'form_name' => 'dummy', 'form_action' => 'process/part_pkg.cgi', - 'form_text' => [ qw(pkg comment clone pkgnum pkgpart), @fixups ], + 'form_text' => [ qw(pkg comment promo_code clone pkgnum pkgpart), + @fixups + ], 'form_checkbox' => [ qw(setuptax recurtax disabled) ], 'form_radio' => \@form_radio, 'form_select' => \@form_select, @@ -295,8 +302,11 @@ my $widget = new HTML::Widgets::SelectLayers( ? $plandata{$field} : $href->{$field}{'default'} ). qq!" onChange="fchanged(this)">!; - } elsif ( $href->{$field}{'type'} eq 'select_multiple' ) { - $html .= qq!