diff options
Diffstat (limited to 'httemplate/search/report_cust_main.html')
-rwxr-xr-x | httemplate/search/report_cust_main.html | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/httemplate/search/report_cust_main.html b/httemplate/search/report_cust_main.html index 994f9503b..2b406729a 100755 --- a/httemplate/search/report_cust_main.html +++ b/httemplate/search/report_cust_main.html @@ -236,9 +236,12 @@ <TR> <TD ALIGN="right"><% mt('Invoice terms') |h %></TD> <TD> +% my @agentnums = $FS::CurrentUser::CurrentUser->agentnums; +% my $agentnum = scalar(@agentnums) == 1 ? $agentnums[0] : ''; <& /elements/select-terms.html, - 'pre_options' => [ '' => emt('all') ], - 'empty_value' => 'NULL', + 'pre_options' => [ '' => emt('all') ], + 'empty_value' => 'NULL', + 'agentnum' => $agentnum, &> </TD> </TR> |