diff options
author | Mark Wells <mark@freeside.biz> | 2013-09-05 14:49:32 -0700 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2013-09-05 14:49:32 -0700 |
commit | 3f77bb21dfb560a6a91d828f7af9844f80d0d914 (patch) | |
tree | ee5e3824453e0b29829b556799c775224075e70c /httemplate/edit/part_pkg.cgi | |
parent | 9327f3d24c49da3200413966d153e8415c26e744 (diff) |
move a2billing tariff and prepaid options to package def, #24572, #24574
Diffstat (limited to 'httemplate/edit/part_pkg.cgi')
-rwxr-xr-x | httemplate/edit/part_pkg.cgi | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/httemplate/edit/part_pkg.cgi b/httemplate/edit/part_pkg.cgi index 7e67c833a..7f8a70710 100755 --- a/httemplate/edit/part_pkg.cgi +++ b/httemplate/edit/part_pkg.cgi @@ -888,11 +888,16 @@ my $html_bottom = sub { foreach my $field ( grep $_ !~ /^(setup|recur)_fee$/, @fields ) { - if(!exists($href->{$field})) { + if(!exists($href->{$field})) { # shouldn't happen warn "nonexistent part_pkg option: '$field'\n"; next; } + if ( exists($href->{$field}->{display_if}) ) { + my %args = ( 'plan' => $layer ); # anything else? + my $display = &{ $href->{$field}->{display_if} }(%args); + next if !$display; + } $html .= '<TR><TD ALIGN="right">'. $href->{$field}{'name'}. '</TD><TD>'; |