summaryrefslogtreecommitdiff
path: root/httemplate/elements/tr-fixed-cust_main.html
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/elements/tr-fixed-cust_main.html')
-rw-r--r--httemplate/elements/tr-fixed-cust_main.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/httemplate/elements/tr-fixed-cust_main.html b/httemplate/elements/tr-fixed-cust_main.html
new file mode 100644
index 000000000..00bcb66d8
--- /dev/null
+++ b/httemplate/elements/tr-fixed-cust_main.html
@@ -0,0 +1,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>