[freeside-commits] freeside/FS/FS/ClientAPI MyAccount.pm, 1.113.2.10, 1.113.2.11
Erik Levinson
levinse at wavetail.420.am
Sat Dec 25 20:09:37 PST 2010
- Previous message: [freeside-commits] freeside/FS/FS Conf.pm, 1.397.2.11, 1.397.2.12 Record.pm, 1.214.2.1, 1.214.2.2 Schema.pm, 1.239.2.6, 1.239.2.7 svc_phone.pm, 1.28.2.1, 1.28.2.2
- Next message: [freeside-commits] freeside/fs_selfservice/FS-SelfService/cgi provision_svc_phone.html, 1.1.2.3, 1.1.2.4 selfservice.cgi, 1.46.2.8, 1.46.2.9 ws_list.html, 1.1.2.5, 1.1.2.6
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/cvsroot/freeside/FS/FS/ClientAPI
In directory wavetail.420.am:/tmp/cvs-serv29725/FS/FS/ClientAPI
Modified Files:
Tag: FREESIDE_2_1_BRANCH
MyAccount.pm
Log Message:
added basic LNP capability to svc_phone including SS, RT10948
Index: MyAccount.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/ClientAPI/MyAccount.pm,v
retrieving revision 1.113.2.10
retrieving revision 1.113.2.11
diff -u -w -d -r1.113.2.10 -r1.113.2.11
--- MyAccount.pm 23 Dec 2010 17:52:23 -0000 1.113.2.10
+++ MyAccount.pm 26 Dec 2010 04:09:35 -0000 1.113.2.11
@@ -18,6 +18,7 @@
use FS::Record qw(qsearch qsearchs dbh);
use FS::Msgcat qw(gettext);
use FS::Misc qw(card_types);
+use FS::Misc::DateTime qw(parse_datetime);
use FS::ClientAPI_SessionCache;
use FS::svc_acct;
use FS::svc_domain;
@@ -978,6 +979,7 @@
'wholesale_view' => 1,
'login_svcpart' => [ $conf->config('selfservice_server-login_svcpart') ],
'date_format' => $conf->config('date_format') || '%m/%d/%Y',
+ 'lnp' => $conf->exists('svc_phone-lnp'),
};
}
@@ -1552,7 +1554,23 @@
sub provision_phone {
my $p = shift;
- my @bulkdid = @{$p->{'bulkdid'}};
+ my @bulkdid;
+ @bulkdid = @{$p->{'bulkdid'}} if $p->{'bulkdid'};
+
+# single DID LNP
+ unless($p->{'lnp'}) {
+ $p->{'lnp_desired_due_date'} = parse_datetime($p->{'lnp_desired_due_date'});
+ $p->{'lnp_status'} = "portingin";
+ return _provision( 'FS::svc_phone',
+ [qw(lnp_desired_due_date lnp_other_provider
+ lnp_other_provider_account phonenum countrycode lnp_status)],
+ [qw(phonenum countrycode)],
+ $p,
+ @_
+ );
+ }
+
+# single DID order
unless (scalar(@bulkdid)) {
return _provision( 'FS::svc_phone',
[qw(phonenum countrycode)],
@@ -1562,7 +1580,7 @@
);
}
-# bulk case
+# bulk DID order case
my $error;
foreach my $did ( @bulkdid ) {
$did =~ s/[^0-9]//g;
- Previous message: [freeside-commits] freeside/FS/FS Conf.pm, 1.397.2.11, 1.397.2.12 Record.pm, 1.214.2.1, 1.214.2.2 Schema.pm, 1.239.2.6, 1.239.2.7 svc_phone.pm, 1.28.2.1, 1.28.2.2
- Next message: [freeside-commits] freeside/fs_selfservice/FS-SelfService/cgi provision_svc_phone.html, 1.1.2.3, 1.1.2.4 selfservice.cgi, 1.46.2.8, 1.46.2.9 ws_list.html, 1.1.2.5, 1.1.2.6
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the freeside-commits
mailing list