X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fpart_pkg.cgi;h=f970508da662de6fe20d03823e498473e4e54e9b;hb=15777da47bab33e8f0021e6dd9aa6b434fa9be30;hp=185d66ac772fb8879763cd8dcf4bdb40c8a1b857;hpb=3ce7691203a7737406bf2d4442f7fd84b81f847e;p=freeside.git
diff --git a/httemplate/edit/part_pkg.cgi b/httemplate/edit/part_pkg.cgi
index 185d66ac7..f970508da 100755
--- a/httemplate/edit/part_pkg.cgi
+++ b/httemplate/edit/part_pkg.cgi
@@ -117,23 +117,40 @@ Tax information
{recurtax} eq 'Y' ? ' CHECKED' : '' %>>
+
% my $conf = new FS::Conf;
% if ( $conf->exists('enable_taxclasses') ) {
-
Tax class |
<% include('/elements/select-taxclass.html', $hashref->{taxclass} ) %>
|
-% } else {
+% } else {
<% include('/elements/select-taxclass.html', $hashref->{taxclass} ) %>
+
% }
+
+
+Line-item revenue recognition
+<% ntable("#cccccc", 2) %>
+% tie my %weight, 'Tie::IxHash',
+% 'pay_weight' => 'Payment',
+% 'credit_weight' => 'Credit'
+% ;
+% foreach my $weight (keys %weight) {
+
+ <% $weight{$weight} %> weight |
+
+ {$weight} || 0 %>>
+ |
+
+% }
@@ -225,12 +242,13 @@ Tax information
%
%tie my %options, 'Tie::IxHash', map { $_=>$plans{$_}->{'name'} } keys %plans;
%
-%my @form_select = ('classnum');
-%if ( $conf->exists('enable_taxclasses') ) {
-% push @form_select, 'taxclass';
-%} else {
-% push @fixups, 'taxclass'; #hidden
-%}
+%#my @form_select = ('classnum');
+%#if ( $conf->exists('enable_taxclasses') ) {
+%# push @form_select, 'taxclass';
+%#} else {
+%# push @fixups, 'taxclass'; #hidden
+%#}
+%my @form_elements = ( 'classnum', 'taxclass' );
%
%my @form_radio = ();
%if ( dbdef->table('pkg_svc')->column('primary_svc') ) {
@@ -247,12 +265,13 @@ Tax information
% 'options' => \%options,
% 'form_name' => 'dummy',
% '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,
-% 'form_select' => \@form_select,
% 'layer_callback' => sub {
% my $layer = shift;
% my $html = qq!!.