summaryrefslogtreecommitdiff
path: root/httemplate/edit/cust_class.html
blob: 2b074aaa1a660cc3e083b2ac375b45f2a2716596 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<% include( 'elements/class_Common.html',
              'name_singular'        => 'Customer Class',
              'table'       => 'cust_class',
              'addl_fields' => \@addl_fields,
              'addl_labels' => { 'tax' => 'Tax Exempt' },
          )
%>
<%init>

my $conf = new FS::Conf;

my @addl_fields = ();
if ( $conf->exists('cust_class-tax_exempt') ) {
  push @addl_fields, { 'field' => 'tax',
                       'type'  => 'checkbox',
                       'value' => 'Y',
                     };
} else {
  push @addl_fields, { 'field' => 'tax',
                       'type'  => 'hidden',
                     };
}

</%init>