summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2014-03-05 19:33:12 -0800
committerIvan Kohler <ivan@freeside.biz>2014-03-05 19:34:06 -0800
commitf2718f0968799015e034fe705d198b91c932e9cd (patch)
tree7b19cdb0f97de0267d4f9a9edbc574e48a2840d1
parent8447fe46bb96c6774b709b5c3341ae35587a35f8 (diff)
backoffice API: add location_info, RT#22830
-rw-r--r--FS/FS/API.pm7
1 files changed, 5 insertions, 2 deletions
diff --git a/FS/FS/API.pm b/FS/FS/API.pm
index e89616080..aefa9e1ba 100644
--- 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
@@ -272,10 +271,14 @@ sub customer_info {
$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;
}
+
#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' => '',
- 'locations' => [ @cust_location ],
+ 'locations' => [ map $_->hashref, @cust_location ],
);
return \%return;