X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fsearch-cust_main.html;h=e8c645eca4644b167b1d67cd741a45a7a895acc3;hb=bb119c4cc86e906f698a205437790bd8f96bb3d0;hp=ca91b4027533799f1722a0722b0c5dc08ba9ef73;hpb=b19897e1db4c110d7d7e8b52800cda5ab58ce9e0;p=freeside.git
diff --git a/httemplate/elements/search-cust_main.html b/httemplate/elements/search-cust_main.html
index ca91b4027..e8c645eca 100644
--- a/httemplate/elements/search-cust_main.html
+++ b/httemplate/elements/search-cust_main.html
@@ -1,27 +1,42 @@
-<%
- my( %opt ) = @_;
- $opt{'field_name'} ||= 'custnum';
-
- my $cust_main = '';
- if ( $opt{'value'} ) {
- $cust_main = qsearchs(
- 'table' => 'cust_main',
- 'hashref' => { 'custnum' => $opt{'value'} },
- 'extra_sql' => " AND ". $FS::CurrentUser::CurrentUser->agentnums_sql,
- );
- }
-%>
+<%doc>
-
+Example:
-
+ include( '/elements/search-cust_main.html,
+ 'field' => 'custnum',
+ #slightly deprecated old synonym for field#'field_name'=>'custnum',
+ 'find_button' => 1, #add a "find" button to the field
+ 'curr_value' => 54, #current value
+ 'value => 32, #deprecated synonym for curr_value
+ );
-
+%doc>
+
-