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/edit/cust_main | |
parent | 1d92f6927bf5dd1b2d48041bba913cab881ff6c9 (diff) |
default credit limit, RT#27267
Diffstat (limited to 'httemplate/edit/cust_main')
-rw-r--r-- | httemplate/edit/cust_main/billing.html | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/httemplate/edit/cust_main/billing.html b/httemplate/edit/cust_main/billing.html index 1088cf5fd..16ddb2e19 100644 --- a/httemplate/edit/cust_main/billing.html +++ b/httemplate/edit/cust_main/billing.html @@ -559,8 +559,23 @@ function toggle(obj) { obj.form.credit_limit.disabled = obj.checked; } </SCRIPT> - <INPUT TYPE="text" NAME="credit_limit" VALUE=<% sprintf('"%.2f"', $cust_main->credit_limit) %><% length($cust_main->credit_limit) ? '' : ' DISABLED' %>> - <INPUT TYPE="checkbox" NAME="no_credit_limit" VALUE=1 onclick="toggle(this)"<% length($cust_main->credit_limit) ? '' : ' CHECKED'%>> <% mt('Unlimited') |h %> + <INPUT TYPE = "text" + NAME = "credit_limit" + VALUE = "<% sprintf('%.2f', $cust_main->credit_limit) %>" + <% length($cust_main->credit_limit) ? '' : ' DISABLED' %> + > +% my $default_credit_limit = $conf->config('default_credit_limit'); + <INPUT TYPE = "checkbox" + NAME = "no_credit_limit" + VALUE = 1 + onClick="toggle(this)" + <% length($cust_main->credit_limit) ? '' : ' CHECKED'%> + > <% $default_credit_limit + ? "Default ($money_char". sprintf("%.2f", $default_credit_limit). + ")" + : mt('Unlimited') + |h + %> </TD> </TR> @@ -678,6 +693,8 @@ my $payinfo = $options{'payinfo'}; my $conf = new FS::Conf; my $payby_default = $conf->config('payby-default'); +my $money_char = $conf->config('money_char') || '$'; + my @payby = grep /\w/, $conf->config('payby'); #@payby = (qw( CARD DCRD CHEK DCHK BILL CASH WEST COMP )) @payby = (qw( CARD DCRD CHEK DCHK BILL CASH COMP )) |