X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_main.cgi;h=61d92b9982ed0d02895960831b847276c1f06fb8;hp=d4217bbcc3e458c569bffe761aae469538b40bf5;hb=8e5fab2148c7dc492b9fffe271c3dcf8df55b01f;hpb=130940a4115c3b96e4d7b2206bea2ecf8d882d6e
diff --git a/httemplate/edit/cust_main.cgi b/httemplate/edit/cust_main.cgi
index d4217bbcc..61d92b998 100755
--- a/httemplate/edit/cust_main.cgi
+++ b/httemplate/edit/cust_main.cgi
@@ -194,6 +194,8 @@ function samechanged(what) {
% }
+
+
%# cust_main/bottomfixup.js
@@ -241,6 +243,7 @@ my($username, $password, $popnum, $saved_domsvc) = ( '', '', 0, 0 ); #svc_acct
my %svc_phone = ();
my %svc_dsl = ();
my $prospectnum = '';
+my $locationnum = '';
if ( $cgi->param('error') ) {
@@ -260,8 +263,12 @@ if ( $cgi->param('error') ) {
$stateid = $cust_main->stateid; # don't mask an entered value on errors
$payinfo = $cust_main->payinfo; # don't mask an entered value on errors
+ $prospectnum = $cgi->param('prospectnum') || '';
+
$pkgpart_svcpart = $cgi->param('pkgpart_svcpart') || '';
+ $locationnum = $cgi->param('locationnum') || '';
+
#svc_acct
$username = $cgi->param('username');
$password = $cgi->param('_password');
@@ -334,11 +341,7 @@ if ( $cgi->param('error') ) {
my $contact = $contacts[0];
$cust_main->first( $contact->first );
$cust_main->set( 'last', $contact->get('last') );
- #XXX contact phone numbers
-
- #XXX additional/all contacts -> alas (notes for now? add add'l contact support?)
-
- #XXX move all contacts and locations
+ #contact phone numbers?
#location -> address (all prospect quals have location, right?)
my $cust_location = $qual->cust_location;
@@ -346,9 +349,10 @@ if ( $cgi->param('error') ) {
$cust_main->$_( $cust_location->$_ )
foreach qw( address1 address2 city county state zip country geocode );
- #pkgpart handled by lock_pkgpart below
+ #locationnum -> package order
+ $locationnum = $qual->locationnum;
- #XXX locationnum -> package order
+ #pkgpart handled by lock_pkgpart below
#service telephone & vendor_qual_id -> svc_dsl
$svc_dsl{$_} = $qual->$_