[freeside-commits] branch master updated. 2dccc0bab4f744c2fcc21f966f5033de7a687a7d

Ivan ivan at 420.am
Wed Mar 5 19:33:42 PST 2014


The branch, master has been updated
       via  2dccc0bab4f744c2fcc21f966f5033de7a687a7d (commit)
      from  0d70ce8995b8bf30ef0e88596af0639be3e8e3b0 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 2dccc0bab4f744c2fcc21f966f5033de7a687a7d
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Wed Mar 5 19:33:12 2014 -0800

    backoffice API: add location_info, RT#22830

diff --git a/FS/FS/API.pm b/FS/FS/API.pm
index e896160..aefa9e1 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;

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/API.pm |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)




More information about the freeside-commits mailing list