diff options
author | ivan <ivan> | 2006-12-15 08:25:44 +0000 |
---|---|---|
committer | ivan <ivan> | 2006-12-15 08:25:44 +0000 |
commit | 6837ca2c7a45033a566238bb3e5f3f262d85fc0e (patch) | |
tree | e169683902781b0d2e60957127478094a835e1f5 /httemplate | |
parent | 02b9c53fb85b0a87d959e140dc30ae21cccb0902 (diff) |
eliminate funkiness with reappearing "Postal invoice" on errors
Diffstat (limited to 'httemplate')
-rwxr-xr-x | httemplate/edit/cust_main.cgi | 2 | ||||
-rw-r--r-- | httemplate/edit/cust_main/billing.html | 6 |
2 files changed, 3 insertions, 5 deletions
diff --git a/httemplate/edit/cust_main.cgi b/httemplate/edit/cust_main.cgi index daddd8e..748cdde 100755 --- a/httemplate/edit/cust_main.cgi +++ b/httemplate/edit/cust_main.cgi @@ -62,6 +62,8 @@ % $password = ''; % $popnum = 0; % @invoicing_list = (); +% push @invoicing_list, 'POST' +% unless $conf->exists('disablepostalinvoicedefault'); %} %$cgi->delete_all(); % diff --git a/httemplate/edit/cust_main/billing.html b/httemplate/edit/cust_main/billing.html index ae56307..77db7b6 100644 --- a/httemplate/edit/cust_main/billing.html +++ b/httemplate/edit/cust_main/billing.html @@ -409,11 +409,7 @@ <TR> <TD WIDTH="608" COLSPAN="2"><INPUT TYPE="checkbox" NAME="invoicing_list_POST" VALUE="POST" <% - ( ( ! @invoicing_list - && ! $conf->exists('disablepostalinvoicedefault') - && ! $cust_main->custnum - ) - || grep { $_ eq 'POST' } @invoicing_list ) + ( grep { $_ eq 'POST' } @invoicing_list ) ? 'CHECKED' : '' |