summaryrefslogtreecommitdiff
path: root/httemplate/view
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2014-02-15 15:56:57 -0800
committerIvan Kohler <ivan@freeside.biz>2014-02-15 15:56:57 -0800
commitad9229b8b2934caa4af464e26cdb3349fb2e759b (patch)
treecc1a3da4cd95ddf09c6f83c705d775dbef20b34f /httemplate/view
parentd17420aa6024c993fb785c455669518ef8befd32 (diff)
default credit limit, RT#27267
Diffstat (limited to 'httemplate/view')
-rw-r--r--httemplate/view/cust_main/billing.html10
1 files changed, 7 insertions, 3 deletions
diff --git a/httemplate/view/cust_main/billing.html b/httemplate/view/cust_main/billing.html
index 10cb1de88..749004d84 100644
--- a/httemplate/view/cust_main/billing.html
+++ b/httemplate/view/cust_main/billing.html
@@ -266,9 +266,13 @@
<TR>
<TD ALIGN="right"><% mt('Credit limit') |h %></TD>
<TD BGCOLOR="#ffffff">
- <% length($cust_main->credit_limit) ?
- $money_char.sprintf("%.2f", $cust_main->credit_limit) :
- emt('Unlimited') %>
+% my $default_credit_limit = $conf->config('default_credit_limit');
+ <% length($cust_main->credit_limit)
+ ? $money_char. sprintf("%.2f", $cust_main->credit_limit)
+ : $default_credit_limit
+ ? "Default ($money_char". sprintf("%.2f", $default_credit_limit). ")"
+ : emt('Unlimited')
+ %>
</TD>
</TR>