[freeside-commits] freeside/FS/FS/ClientAPI MyAccount.pm, 1.133.2.4, 1.133.2.5
Ivan,,,
ivan at wavetail.420.am
Thu Sep 15 14:34:35 PDT 2011
Update of /home/cvs/cvsroot/freeside/FS/FS/ClientAPI
In directory wavetail.420.am:/tmp/cvs-serv13353
Modified Files:
Tag: FREESIDE_2_3_BRANCH
MyAccount.pm
Log Message:
add primary_cust_svc info to list_pkgs call, RT#13656
Index: MyAccount.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/ClientAPI/MyAccount.pm,v
retrieving revision 1.133.2.4
retrieving revision 1.133.2.5
diff -u -w -d -r1.133.2.4 -r1.133.2.5
--- MyAccount.pm 14 Sep 2011 20:48:25 -0000 1.133.2.4
+++ MyAccount.pm 15 Sep 2011 21:34:33 -0000 1.133.2.5
@@ -1062,8 +1062,10 @@
{ 'svcnum' => $session->{'svcnum'},
'custnum' => $custnum,
'cust_pkg' => [ map {
- { $_->hash,
+ my $primary_cust_svc = $_->primary_cust_svc;
+ +{ $_->hash,
$_->part_pkg->hash,
+ #status => $_->status,
part_svc =>
[ map $_->hashref, $_->available_part_svc ],
cust_svc =>
@@ -1081,6 +1083,14 @@
$ref;
} $_->cust_svc
],
+ primary_cust_svc =>
+ $primary_cust_svc
+ ? { $primary_cust_svc->hash,
+ label => [ $primary_cust_svc->label ],
+ finger => $primary_cust_svc->svc_x->finger, #uuh
+ $primary_cust_svc->part_svc->hash,
+ }
+ : {}, #'' ?
};
} $cust_main->ncancelled_pkgs
],
More information about the freeside-commits
mailing list