[freeside-commits] freeside/FS/FS/ClientAPI MyAccount.pm, 1.113.2.17, 1.113.2.18

Ivan,,, ivan at wavetail.420.am
Wed Sep 14 13:48:28 PDT 2011


Update of /home/cvs/cvsroot/freeside/FS/FS/ClientAPI
In directory wavetail.420.am:/tmp/cvs-serv13576

Modified Files:
      Tag: FREESIDE_2_1_BRANCH
	MyAccount.pm 
Log Message:
add svc_label to ClientAPI customer_info, RT#13656

Index: MyAccount.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/ClientAPI/MyAccount.pm,v
retrieving revision 1.113.2.17
retrieving revision 1.113.2.18
diff -u -w -d -r1.113.2.17 -r1.113.2.18
--- MyAccount.pm	23 Jul 2011 00:40:08 -0000	1.113.2.17
+++ MyAccount.pm	14 Sep 2011 20:48:26 -0000	1.113.2.18
@@ -20,6 +20,7 @@
 use FS::Misc qw(card_types);
 use FS::Misc::DateTime qw(parse_datetime);
 use FS::ClientAPI_SessionCache;
+use FS::cust_svc;
 use FS::svc_acct;
 use FS::svc_domain;
 use FS::svc_phone;
@@ -391,6 +392,11 @@
       $return{discount_terms_hash} = { $cust_main->discount_terms_hash };
     }
 
+    if ( $session->{'svcnum'} ) {
+      my $cust_svc = qsearchs('cust_svc', { 'svcnum' => $session->{'svcnum'} });
+      $return{'svc_label'} = ($cust_svc->label)[1] if $cust_svc;
+    }
+
   } elsif ( $session->{'svcnum'} ) { #no customer record
 
     my $svc_acct = qsearchs('svc_acct', { 'svcnum' => $session->{'svcnum'} } )



More information about the freeside-commits mailing list