diff options
author | ivan <ivan> | 2007-01-21 21:45:29 +0000 |
---|---|---|
committer | ivan <ivan> | 2007-01-21 21:45:29 +0000 |
commit | 05686487551e26418c9b2d6b92ea0d89bb100082 (patch) | |
tree | e129029de83fc91d8d9e2a79dfcb9043d6778f55 /httemplate/edit/part_pkg.cgi | |
parent | a5d07d949a9ef3e57694a49a60e5a393c350a42f (diff) |
Have lineitem-specific applications happen in all cases; add weightsto control
Diffstat (limited to 'httemplate/edit/part_pkg.cgi')
-rwxr-xr-x | httemplate/edit/part_pkg.cgi | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/httemplate/edit/part_pkg.cgi b/httemplate/edit/part_pkg.cgi index c70ef74fa..f970508da 100755 --- a/httemplate/edit/part_pkg.cgi +++ b/httemplate/edit/part_pkg.cgi @@ -117,23 +117,40 @@ Tax information <INPUT TYPE="checkbox" NAME="recurtax" VALUE="Y" <% $hashref->{recurtax} eq 'Y' ? ' CHECKED' : '' %>> </TD> </TR> + % my $conf = new FS::Conf; % if ( $conf->exists('enable_taxclasses') ) { - <TR> <TD align="right">Tax class</TD> <TD> <% include('/elements/select-taxclass.html', $hashref->{taxclass} ) %> </TD> </TR> -% } else { +% } else { <% include('/elements/select-taxclass.html', $hashref->{taxclass} ) %> + % } +</TABLE> +<BR> +Line-item revenue recognition +<% ntable("#cccccc", 2) %> +% tie my %weight, 'Tie::IxHash', +% 'pay_weight' => 'Payment', +% 'credit_weight' => 'Credit' +% ; +% foreach my $weight (keys %weight) { + <TR> + <TD ALIGN="right"><% $weight{$weight} %> weight</TD> + <TD> + <INPUT TYPE="text" NAME="<% $weight %>" SIZE=6 VALUE=<% $hashref->{$weight} || 0 %>> + </TD> + </TR> +% } </TABLE> </TD></TR></TABLE> @@ -250,7 +267,8 @@ Tax information % 'form_action' => 'process/part_pkg.cgi', % 'form_elements' => \@form_elements, % 'form_text' => [ qw(pkg comment promo_code clone pkgnum pkgpart), -% @fixups +% qw(pay_weight credit_weight), #keys(%weight), +% @fixups, % ], % 'form_checkbox' => [ qw(setuptax recurtax disabled) ], % 'form_radio' => \@form_radio, |