[freeside-commits] freeside/FS/FS/ClientAPI MyAccount.pm, 1.133.2.3, 1.133.2.4
Ivan,,,
ivan at wavetail.420.am
Wed Sep 14 13:48:27 PDT 2011
Update of /home/cvs/cvsroot/freeside/FS/FS/ClientAPI
In directory wavetail.420.am:/tmp/cvs-serv13569
Modified Files:
Tag: FREESIDE_2_3_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.133.2.3
retrieving revision 1.133.2.4
diff -u -w -d -r1.133.2.3 -r1.133.2.4
--- MyAccount.pm 24 Aug 2011 21:00:58 -0000 1.133.2.3
+++ MyAccount.pm 14 Sep 2011 20:48:25 -0000 1.133.2.4
@@ -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;
@@ -418,6 +419,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