summaryrefslogtreecommitdiff
path: root/httemplate/elements/tr-fixed-prospect_main.html
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2012-07-03 18:51:51 -0700
committerIvan Kohler <ivan@freeside.biz>2012-07-03 18:51:51 -0700
commit81978af92ecdaaefeff5156d9ab3b4f99586df1c (patch)
tree19a4e6bbcc6648c506c48e304418001294ed7485 /httemplate/elements/tr-fixed-prospect_main.html
parent7abce2207dbee012fd442940dc42070f45ef8a16 (diff)
quotations, RT#16996
Diffstat (limited to 'httemplate/elements/tr-fixed-prospect_main.html')
-rw-r--r--httemplate/elements/tr-fixed-prospect_main.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/httemplate/elements/tr-fixed-prospect_main.html b/httemplate/elements/tr-fixed-prospect_main.html
new file mode 100644
index 000000000..8da0ffb84
--- /dev/null
+++ b/httemplate/elements/tr-fixed-prospect_main.html
@@ -0,0 +1,15 @@
+% if ( $prospect_main ) {
+ <% include('tr-fixed.html', %opt ) %>
+% }
+<%init>
+
+my %opt = @_;
+
+my $value = $opt{'curr_value'} || $opt{'value'};
+
+my $prospect_main = $value ? qsearchs('prospect_main', {prospectnum=>$value} )
+ : '';
+
+$opt{'formatted_value'} = $prospect_main->name if $prospect_main;
+
+</%init>