[freeside-commits] freeside/FS/FS/ClientAPI MyAccount.pm, 1.133.2.43, 1.133.2.44
Ivan,,,
ivan at wavetail.420.am
Thu Feb 9 00:38:29 PST 2012
Update of /home/cvs/cvsroot/freeside/FS/FS/ClientAPI
In directory wavetail.420.am:/tmp/cvs-serv22721/FS/FS/ClientAPI
Modified Files:
Tag: FREESIDE_2_3_BRANCH
MyAccount.pm
Log Message:
add svc_status_hash to selfservice, RT#15987
Index: MyAccount.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/ClientAPI/MyAccount.pm,v
retrieving revision 1.133.2.43
retrieving revision 1.133.2.44
diff -u -w -d -r1.133.2.43 -r1.133.2.44
--- MyAccount.pm 8 Feb 2012 07:09:47 -0000 1.133.2.43
+++ MyAccount.pm 9 Feb 2012 08:38:27 -0000 1.133.2.44
@@ -1543,6 +1543,39 @@
}
+sub svc_status_hash {
+ my $p = shift;
+
+ my($context, $session, $custnum) = _custoragent_session_custnum($p);
+ return { 'error' => $session } if $context eq 'error';
+
+ #XXX only svc_acct for now
+ my $svc_x = _customer_svc_x( $custnum, $p->{'svcnum'}, 'svc_acct')
+ or return { 'error' => "Service not found" };
+
+ my ( $html, $hashref ) = $svc_x->export_getstatus;
+ return $hashref;
+
+}
+
+sub set_svc_status_hash {
+ my $p = shift;
+
+ my($context, $session, $custnum) = _custoragent_session_custnum($p);
+ return { 'error' => $session } if $context eq 'error';
+
+ #XXX only svc_acct for now
+ my $svc_x = _customer_svc_x( $custnum, $p->{'svcnum'}, 'svc_acct')
+ or return { 'error' => "Service not found" };
+
+ my $error = $svc_x->export_setstatus($p); #$p? returns error?
+ return { 'error' => $error } if $error;
+
+ return {}; #? { 'error' => '' }
+
+}
+
+
sub acct_forward_info {
my $p = shift;
More information about the freeside-commits
mailing list