[freeside-commits] freeside/FS/FS/ClientAPI MyAccount.pm, 1.123, 1.124
Erik Levinson
levinse at wavetail.420.am
Sat Dec 25 20:09:28 PST 2010
- Previous message: [freeside-commits] freeside/FS/FS Conf.pm, 1.411, 1.412 Record.pm, 1.215, 1.216 Schema.pm, 1.255, 1.256 svc_phone.pm, 1.29, 1.30
- Next message: [freeside-commits] freeside/fs_selfservice/FS-SelfService/cgi provision_svc_phone.html, 1.2, 1.3 selfservice.cgi, 1.54, 1.55 ws_list.html, 1.4, 1.5
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/cvsroot/freeside/FS/FS/ClientAPI
In directory wavetail.420.am:/tmp/cvs-serv29722/FS/FS/ClientAPI
Modified Files:
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.123
retrieving revision 1.124
diff -u -w -d -r1.123 -r1.124
--- MyAccount.pm 23 Dec 2010 17:52:20 -0000 1.123
+++ MyAccount.pm 26 Dec 2010 04:09:26 -0000 1.124
@@ -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'),
};
}
@@ -1568,7 +1570,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)],
@@ -1578,7 +1596,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.411, 1.412 Record.pm, 1.215, 1.216 Schema.pm, 1.255, 1.256 svc_phone.pm, 1.29, 1.30
- Next message: [freeside-commits] freeside/fs_selfservice/FS-SelfService/cgi provision_svc_phone.html, 1.2, 1.3 selfservice.cgi, 1.54, 1.55 ws_list.html, 1.4, 1.5
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the freeside-commits
mailing list