fix A/R report
[freeside.git] / httemplate / elements / tr-fixed-cust_main.html
1 % if ( $cust_main ) {
2   <% include('tr-fixed.html', %opt ) %>
3 % }
4 <%init>
5
6 my %opt = @_;
7
8 my $value = $opt{'curr_value'} || $opt{'value'};
9
10 my $cust_main = $value ? qsearchs('cust_main', {custnum=>$value} )
11                        : '';
12
13 $opt{'formatted_value'} = $cust_main->name if $cust_main;
14
15 </%init>