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>