[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
- Previous message: [freeside-commits] freeside/FS/FS/ClientAPI MyAccount.pm, 1.133.2.3, 1.133.2.4
- Next message: [freeside-commits] freeside/FS/FS Conf.pm, 1.473, 1.474 Locales.pm, 1.1, 1.2 Schema.pm, 1.326, 1.327 conf.pm, 1.2, 1.3 cust_bill.pm, 1.353, 1.354 cust_main.pm, 1.588, 1.589 cust_main_Mixin.pm, 1.11, 1.12
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
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'} } )
- Previous message: [freeside-commits] freeside/FS/FS/ClientAPI MyAccount.pm, 1.133.2.3, 1.133.2.4
- Next message: [freeside-commits] freeside/FS/FS Conf.pm, 1.473, 1.474 Locales.pm, 1.1, 1.2 Schema.pm, 1.326, 1.327 conf.pm, 1.2, 1.3 cust_bill.pm, 1.353, 1.354 cust_main.pm, 1.588, 1.589 cust_main_Mixin.pm, 1.11, 1.12
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the freeside-commits
mailing list