diff options
author | Ivan Kohler <ivan@freeside.biz> | 2014-12-05 10:45:26 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2014-12-05 10:45:26 -0800 |
commit | c7c96355331687b6fd44bfe541b402bd0664481d (patch) | |
tree | e39453120b474fc911b8bcc356a0e6059f924e6f /httemplate/search/report_cust_main.html | |
parent | be2a6e7068337aa57b04bd7fa88090002d79a64b (diff) |
agent-ize invoice_default_terms, RT#32513
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> |