summaryrefslogtreecommitdiff
path: root/httemplate/elements
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2014-12-05 10:45:26 -0800
committerJeremy Davis <jeremyd@freeside.biz>2014-12-10 11:23:48 -0500
commita83f6bb859327c0ff55d6aa30e39e8a0f657be75 (patch)
tree45626acc9ee47f7253cac441186a8adc60d76f78 /httemplate/elements
parent36a9d4661fffb85b8d9ec099ee2dc0ced8991e99 (diff)
agent-ize invoice_default_terms, RT#32513
Diffstat (limited to 'httemplate/elements')
-rw-r--r--httemplate/elements/select-terms.html8
1 files changed, 5 insertions, 3 deletions
diff --git a/httemplate/elements/select-terms.html b/httemplate/elements/select-terms.html
index 88396920f..716832f52 100644
--- a/httemplate/elements/select-terms.html
+++ b/httemplate/elements/select-terms.html
@@ -26,9 +26,11 @@ my $conf = new FS::Conf;
my $empty_label =
$opt{'empty_label'}
- || emt('Default').' ('.
- ($conf->config('invoice_default_terms') || emt('Payable upon receipt')).
- ')';
+ || emt('Default').' ('.
+ ( $conf->config('invoice_default_terms', $opt{'agentnum'})
+ || emt('Payable upon receipt')
+ ).
+ ')';
my $empty_value = $opt{'empty_value'} || '';