@@ -178,19 +174,17 @@ function samechanged(what) {
% unless ( $custnum ) {
- <% include('cust_main/first_pkg.html', $cust_main,
+ <& cust_main/first_pkg.html, $cust_main,
'pkgpart_svcpart' => $pkgpart_svcpart,
'disable_empty' =>
scalar( $cgi->param('lock_pkgpart') =~ /^(\d+)$/ ),
- #svc_acct
'username' => $username,
'password' => $password,
'popnum' => $popnum,
'saved_domsvc' => $saved_domsvc,
%svc_phone,
%svc_dsl,
- )
- %>
+ &>
% }
@@ -200,8 +194,8 @@ function samechanged(what) {
%# cust_main/bottomfixup.js
% foreach my $hidden (
-% 'payauto',
-% 'payinfo', 'payinfo1', 'payinfo2', 'paytype',
+% 'payauto', 'billday',
+% 'payinfo', 'payinfo1', 'payinfo2', 'payinfo3', 'paytype',
% 'payname', 'paystate', 'exp_month', 'exp_year', 'paycvv',
% 'paystart_month', 'paystart_year', 'payissue',
% 'payip',
@@ -210,18 +204,18 @@ function samechanged(what) {
% }
-<% include('cust_main/bottomfixup.html') %>
+<& cust_main/bottomfixup.html &>
"
+ VALUE = "<% $custnum ? emt("Apply changes") : emt("Add Customer") %>"
onClick = "this.disabled=true; bottomfixup(this.form);"
>
-<% include('/elements/footer.html') %>
+<& /elements/footer.html &>
<%init>
@@ -315,6 +309,8 @@ if ( $cgi->param('error') ) {
$custnum='';
$cust_main = new FS::cust_main ( {} );
+ $cust_main->agentnum( $conf->config('default_agentnum') )
+ if $conf->exists('default_agentnum');
$cust_main->otaker( &getotaker );
$cust_main->referral_custnum( $cgi->param('referral_custnum') );
@invoicing_list = ();
@@ -347,7 +343,7 @@ if ( $cgi->param('error') ) {
my $cust_location = $qual->cust_location;
$cust_location->dealternize;
$cust_main->$_( $cust_location->$_ )
- foreach qw( address1 address2 city county state zip country geocode );
+ foreach qw( address1 address2 city county state zip country latitude longitude coord_auto geocode );
#locationnum -> package order
$locationnum = $qual->locationnum;
@@ -373,6 +369,7 @@ my %keep = map { $_=>1 } qw( error tagnum lock_agentnum lock_pkgpart );
$cgi->delete( grep !$keep{$_}, $cgi->param );
my $title = $custnum ? 'Edit Customer' : 'Add Customer';
+$title = mt($title);
$title .= ": ". $cust_main->name if $custnum;
my $r = qq!* !;
|