[freeside-commits] freeside/FS/FS/ClientAPI MyAccount.pm, 1.136, 1.137
Ivan,,,
ivan at wavetail.420.am
Wed Sep 14 13:48:26 PDT 2011
Update of /home/cvs/cvsroot/freeside/FS/FS/ClientAPI
In directory wavetail.420.am:/tmp/cvs-serv13560
Modified Files:
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.136
retrieving revision 1.137
diff -u -w -d -r1.136 -r1.137
--- MyAccount.pm 24 Aug 2011 21:00:43 -0000 1.136
+++ MyAccount.pm 14 Sep 2011 20:48:24 -0000 1.137
@@ -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