X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_main.cgi;h=10086a4dd85e587fcff2b7943bc8a5cb4cb9fa6f;hb=efc68f41987d007de5e792b88df1c63bf3dedf4c;hp=aae80937067abeded9be1b1e9e5307aad95f5f73;hpb=e8384f16694d6c7f094bdc7a1506c29dbf7f1417;p=freeside.git diff --git a/httemplate/edit/cust_main.cgi b/httemplate/edit/cust_main.cgi index aae809370..10086a4dd 100755 --- a/httemplate/edit/cust_main.cgi +++ b/httemplate/edit/cust_main.cgi @@ -4,12 +4,14 @@ ' onUnload="myclose()"' ) %> +<% include('/elements/init_overlib.html') %> + <% include('/elements/error.html') %>
-% if ( $custnum ) { +% if ( $custnum ) { Customer #<% $custnum %> - <% ucfirst($cust_main->status) %> @@ -17,11 +19,9 @@

% } - <% &ntable("#cccccc") %> - - +%# agent <% include('/elements/tr-select-agent.html', 'curr_value' => $cust_main->agentnum, 'label' => "${r}Agent", @@ -30,16 +30,27 @@ ) %> - -% +%# agent_custid +% if ( $conf->exists('cust_main-edit_agent_custid') ) { + + + Customer identifier + + + +% } else { + + + +% } + +%# referral (advertising source) %my $refnum = $cust_main->refnum || $conf->config('referraldefault') || 0; %if ( $custnum && ! $conf->exists('editreferrals') ) { -% - -% } else { +% } else { <% include('/elements/tr-select-part_referral.html', 'curr_value' => $refnum @@ -48,15 +59,12 @@ % } - -% +%# referring customer %my $referring_cust_main = ''; %if ( $cust_main->referral_custnum % and $referring_cust_main = % qsearchs('cust_main', { custnum => $cust_main->referral_custnum } ) %) { -% - Referring customer @@ -210,13 +218,23 @@ Service address ) %> +<% include( '/elements/xmlhttp.html', + 'url' => $p.'misc/xmlhttp-cust_main-address_standardize.html', + 'subs' => [ 'address_standardize' ], + #'method' => 'POST', #could get too long? + ) +%> + - + % foreach my $hidden ( % 'birthdate', % -% 'custnum', 'agentnum', 'refnum', 'referral_custnum', +% 'custnum', 'agentnum', 'agent_custid', 'refnum', 'referral_custnum', % 'last', 'first', 'ss', 'company', % 'address1', 'address2', 'city', % 'county', 'state', 'zip', 'country', @@ -328,7 +502,8 @@ function copyelement(from, to) { % 'tax', % 'invoicing_list', 'invoicing_list_POST', 'invoicing_list_FAX', % 'invoice_terms', -% 'spool_cdr' +% 'spool_cdr', +% 'squelch_cdr' % ) { % @@ -438,7 +613,7 @@ function copyelement(from, to) {
-"> +" onClick="document.bottomform.submitButton.disabled=true; bottomfixup(this.form);">