diff options
| author | Ivan Kohler <ivan@freeside.biz> | 2014-02-15 15:56:55 -0800 |
|---|---|---|
| committer | Ivan Kohler <ivan@freeside.biz> | 2014-02-15 15:56:55 -0800 |
| commit | bcdf7aa475b84adf5efc0bc775e84975f7e830a5 (patch) | |
| tree | ee5e6eac34a8be687ef4a5712bfa866912f6f7af /httemplate/view | |
| parent | 1d92f6927bf5dd1b2d48041bba913cab881ff6c9 (diff) | |
default credit limit, RT#27267
Diffstat (limited to 'httemplate/view')
| -rw-r--r-- | httemplate/view/cust_main/billing.html | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/httemplate/view/cust_main/billing.html b/httemplate/view/cust_main/billing.html index e0dd7b904..382fdacf5 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> |
