X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_main.cgi;h=bdf3431d7eb1a56c7a0a1f1cfa9b0c1855f1266d;hb=8c8872f684ccfa43dae290877c2cf8aed8828a9f;hp=38bae4fa8a4b0b3a62e4a9a13aa58bddad50e9e4;hpb=b6260b4f39cf34b9e0e5b8560ef88c8881ba0766;p=freeside.git diff --git a/httemplate/edit/cust_main.cgi b/httemplate/edit/cust_main.cgi index 38bae4fa8..bdf3431d7 100755 --- a/httemplate/edit/cust_main.cgi +++ b/httemplate/edit/cust_main.cgi @@ -68,8 +68,8 @@ VALUE="Y" <% $has_ship_address ? '' : 'CHECKED' %> ><% mt('same as billing address') |h %> -
- +
+
<& cust_main/before_ship_location.html, $cust_main &> <& /elements/location.html, object => $cust_main->ship_location, @@ -80,13 +80,12 @@ &> % unless ($conf->exists('invoice-ship_address')) { #it's always on, so hide per-cust config - - @@ -96,23 +95,21 @@
  + <% include('/elements/checkbox.html', 'field' => 'invoice_ship_address', 'value' => 'Y', 'curr_value' => $cust_main->invoice_ship_address, - 'postfix' => emt('included on invoices'), + 'postfix' => emt('Include service address on invoices'), ) %>
- -
+% if ( ! $has_ship_address ) { + $('#div_ship_location').hide(); +% } + + <& cust_main/contacts_new.html, 'cust_main'=>$cust_main, &> @@ -297,8 +294,7 @@ if ( $cgi->param('error') ) { $cust_main->agentnum( $conf->config('default_agentnum') ) if $conf->exists('default_agentnum'); $cust_main->referral_custnum( $cgi->param('referral_custnum') ); - @invoicing_list = (); - push @invoicing_list, 'POST' + $cust_main->set('postal_invoice', 'Y') unless $conf->exists('disablepostalinvoicedefault'); $ss = ''; $stateid = '';