diff options
author | Mark Wells <mark@freeside.biz> | 2013-09-05 14:48:33 -0700 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2013-09-05 14:48:33 -0700 |
commit | 9c689ebc5dee1cada21e95b1b29a29ea54247e77 (patch) | |
tree | 77ed16931276d31dc3d187cd407df8b7d2806a4e /httemplate/edit/part_pkg.cgi | |
parent | a552736fc7a29ab6780f4ae745d3dcfd3d79ed73 (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 e6651964d..0e1e993df 100755 --- a/httemplate/edit/part_pkg.cgi +++ b/httemplate/edit/part_pkg.cgi @@ -834,11 +834,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>'; |