summaryrefslogtreecommitdiff
path: root/httemplate/search/report_cust_main.html
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2014-12-05 10:45:26 -0800
committerIvan Kohler <ivan@freeside.biz>2014-12-05 10:45:26 -0800
commitc7c96355331687b6fd44bfe541b402bd0664481d (patch)
treee39453120b474fc911b8bcc356a0e6059f924e6f /httemplate/search/report_cust_main.html
parentbe2a6e7068337aa57b04bd7fa88090002d79a64b (diff)
agent-ize invoice_default_terms, RT#32513
Diffstat (limited to 'httemplate/search/report_cust_main.html')
-rwxr-xr-xhttemplate/search/report_cust_main.html7
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>