summaryrefslogtreecommitdiff
path: root/httemplate/elements/tr-select-tax_status.html
blob: 387e49e1f25f84ef8385ec7c285f5e0624276fb3 (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
25
% if ( !$vendor ) {

  <INPUT TYPE="hidden" NAME="<% $opt{'element_name'} || $opt{'field'} || 'taxstatusnum' %>" VALUE="">

% } else { 

  <& tr-select-table.html,
    label     => 'Customer tax status',
    table     => 'tax_status',
    name_col  => 'description',
    hashref   => { data_vendor => $vendor },
    order_by  => 'order by taxstatus',
    required  => 1,
    %opt
  &>

% } 

<%shared>
my $conf = FS::Conf->new;
my $vendor = $conf->config('tax_data_vendor');
</%shared>
<%init>
my %opt = @_;
</%init>