summaryrefslogtreecommitdiff
path: root/httemplate/elements/select-part_referral.html
blob: 670b70c7cff16be97fd246db3d27f4a6b34d7ec3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
%
%  my( $refnum, %opt ) = @_;
%
%  $opt{'records'} = delete $opt{'part_referrals'}
%    if $opt{'part_referrals'};
%
%
<% include( '/elements/select-table.html',
                 'table'       => 'part_referral',
                 'name_col'    => 'referral',
                 'value'       => $refnum,
                 'empty_label' => 'Select advertising source',
                 'hashref'     => { 'disabled' => '' },
                 'extra_sql'   => ' AND '.
                                  FS::part_referral->acl_agentnum_sql(1),
                 %opt,
             )
%>