diff options
author | Ivan Kohler <ivan@freeside.biz> | 2012-04-15 15:38:27 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2012-04-15 15:38:27 -0700 |
commit | 2ce6ee8e5cd817a4018ad26eb1e364198c1dd931 (patch) | |
tree | f1f1d447c8dc76060a07ed594691dbacd7658425 /httemplate/edit/cust_class.html | |
parent | 33013bb1ef0b5f07105fe13f5bfc06350fc4d868 (diff) |
add cust_class-tax_exempt conf setting to control the tax exemption flag per customer class rather than per indivual customer, RT#16818
Diffstat (limited to 'httemplate/edit/cust_class.html')
-rw-r--r-- | httemplate/edit/cust_class.html | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/httemplate/edit/cust_class.html b/httemplate/edit/cust_class.html index fdb58e687..8fce90588 100644 --- a/httemplate/edit/cust_class.html +++ b/httemplate/edit/cust_class.html @@ -1,5 +1,24 @@ <% include( 'elements/class_Common.html', - 'name' => 'Customer Class', - 'table' => 'cust_class', + 'name' => '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> |