summaryrefslogtreecommitdiff
path: root/httemplate/elements/select-cust_tag.html
blob: 02f849850170fee532770e61cf0ed182ee1abfdb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<% include( '/elements/checkboxes-table.html',
                 'target_table'  => 'part_tag',
                 'link_table'    => 'cust_tag',
                 'name_col'      => 'tagname', #tagname - tagdesc??
                 'color_col'     => 'tagcolor',
                 'disable-able'  => 1,
                 'order_by'      => ' ORDER BY tagname',
                 'source_table'  => 'cust_main',
                 'sourcenum'     => $opt{'custnum'},
                 %opt,
             )
%>
<%init>

my %opt = @_;
#my $agentnum = $opt{'curr_value'} || $opt{'value'};

$opt{'records'} = delete $opt{'part_tag'}
  if $opt{'part_tag'};

</%init>