summaryrefslogtreecommitdiff
path: root/httemplate/elements/tr-fixed-cust_main.html
blob: 00bcb66d85fce62b409b5724f65362cb7e7bde50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
% if ( $cust_main ) {
  <% include('tr-fixed.html', %opt ) %>
% }
<%init>

my %opt = @_;

my $value = $opt{'curr_value'} || $opt{'value'};

my $cust_main = $value ? qsearchs('cust_main', {custnum=>$value} )
                       : '';

$opt{'formatted_value'} = $cust_main->name if $cust_main;

</%init>