projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
801de7d
)
add primary_cust_svc info to list_pkgs call, RT#13656
author
ivan
<ivan>
Thu, 15 Sep 2011 21:34:31 +0000
(21:34 +0000)
committer
ivan
<ivan>
Thu, 15 Sep 2011 21:34:31 +0000
(21:34 +0000)
FS/FS/ClientAPI/MyAccount.pm
patch
|
blob
|
history
diff --git
a/FS/FS/ClientAPI/MyAccount.pm
b/FS/FS/ClientAPI/MyAccount.pm
index
6948fce
..
4b77ea5
100644
(file)
--- a/
FS/FS/ClientAPI/MyAccount.pm
+++ b/
FS/FS/ClientAPI/MyAccount.pm
@@
-1062,8
+1062,10
@@
sub list_pkgs {
{ 'svcnum' => $session->{'svcnum'},
'custnum' => $custnum,
'cust_pkg' => [ map {
{ 'svcnum' => $session->{'svcnum'},
'custnum' => $custnum,
'cust_pkg' => [ map {
- { $_->hash,
+ my $primary_cust_svc = $_->primary_cust_svc;
+ +{ $_->hash,
$_->part_pkg->hash,
$_->part_pkg->hash,
+ #status => $_->status,
part_svc =>
[ map $_->hashref, $_->available_part_svc ],
cust_svc =>
part_svc =>
[ map $_->hashref, $_->available_part_svc ],
cust_svc =>
@@
-1081,6
+1083,14
@@
sub list_pkgs {
$ref;
} $_->cust_svc
],
$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
],
};
} $cust_main->ncancelled_pkgs
],