projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8447fe4
)
backoffice API: add location_info, RT#22830
author
Ivan Kohler
<ivan@freeside.biz>
Thu, 6 Mar 2014 03:33:12 +0000
(19:33 -0800)
committer
Ivan Kohler
<ivan@freeside.biz>
Thu, 6 Mar 2014 03:34:06 +0000
(19:34 -0800)
FS/FS/API.pm
patch
|
blob
|
history
diff --git
a/FS/FS/API.pm
b/FS/FS/API.pm
index
e896160
..
aefa9e1
100644
(file)
--- a/
FS/FS/API.pm
+++ b/
FS/FS/API.pm
@@
-213,7
+213,6
@@
sub insert_refund_phonenum {
#---
#---
-#generally, the more useful data from the cust_main record the better.
# "2 way syncing" ? start with non-sync pulling info here, then if necessary
# "2 way syncing" ? start with non-sync pulling info here, then if necessary
@@
-272,10
+271,14
@@
sub customer_info {
$return{'postal_invoicing'} =
0 < ( grep { $_ eq 'POST' } @invoicing_list );
$return{'postal_invoicing'} =
0 < ( grep { $_ eq 'POST' } @invoicing_list );
+ #generally, the more useful data from the cust_main record the better.
+ # well, tell me what you want
+
return \%return;
}
return \%return;
}
+
#I also monitor for changes to the additional locations that are applied to
# packages, and would like for those to be exportable as well. basically the
# location data passed with the custnum.
#I also monitor for changes to the additional locations that are applied to
# packages, and would like for those to be exportable as well. basically the
# location data passed with the custnum.
@@
-289,7
+292,7
@@
sub location_info {
my %return = (
'error' => '',
my %return = (
'error' => '',
- 'locations' => [ @cust_location ],
+ 'locations' => [
map $_->hashref,
@cust_location ],
);
return \%return;
);
return \%return;