From: ivan Date: Fri, 15 Dec 2006 08:25:44 +0000 (+0000) Subject: eliminate funkiness with reappearing "Postal invoice" on errors X-Git-Tag: TRIXBOX_2_6~827 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=6837ca2c7a45033a566238bb3e5f3f262d85fc0e eliminate funkiness with reappearing "Postal invoice" on errors --- diff --git a/httemplate/edit/cust_main.cgi b/httemplate/edit/cust_main.cgi index daddd8ece..748cdde5f 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 ae5630739..77db7b6c6 100644 --- a/httemplate/edit/cust_main/billing.html +++ b/httemplate/edit/cust_main/billing.html @@ -409,11 +409,7 @@ exists('disablepostalinvoicedefault') - && ! $cust_main->custnum - ) - || grep { $_ eq 'POST' } @invoicing_list ) + ( grep { $_ eq 'POST' } @invoicing_list ) ? 'CHECKED' : ''