X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2FAPI.pm;h=0bc0d087ec0ab9dde813d40e4dae9f918dd127aa;hb=2b4ca5eec4564db2df08da6fa71592d010343783;hp=c107621cdad2320e65e3f4a57181b0b4f2a8c72b;hpb=eb472623cd8d18ee2d142ae6d61acd465c268e6e;p=freeside.git diff --git a/FS/FS/API.pm b/FS/FS/API.pm index c107621cd..0bc0d087e 100644 --- a/FS/FS/API.pm +++ b/FS/FS/API.pm @@ -41,7 +41,6 @@ Enter cash refund. #--- -#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 @@ -96,10 +95,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. @@ -113,7 +116,7 @@ sub location_info { my %return = ( 'error' => '', - 'locations' => [ @cust_location ], + 'locations' => [ map $_->hashref, @cust_location ], ); return \%return;