From 96a9b152d1c72f1db8cd02d5d7f8d7af473495ee Mon Sep 17 00:00:00 2001 From: Finn Date: Thu, 23 Nov 2017 16:35:45 +0000 Subject: [PATCH] extra org data added --- lib/Pear/LocalLoop/Controller/Api/V1/Supplier/Location.pm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/Pear/LocalLoop/Controller/Api/V1/Supplier/Location.pm b/lib/Pear/LocalLoop/Controller/Api/V1/Supplier/Location.pm index 08e8601..73efcf3 100644 --- a/lib/Pear/LocalLoop/Controller/Api/V1/Supplier/Location.pm +++ b/lib/Pear/LocalLoop/Controller/Api/V1/Supplier/Location.pm @@ -151,6 +151,9 @@ sub lis_load { 'organisation.name', 'organisation.latitude', 'organisation.longitude', + 'organisation.street_name', + 'organisation.town', + 'organisation.postcode', ], group_by => [ qw/ organisation.id / ], }, @@ -163,6 +166,9 @@ sub lis_load { latitude => $_->{organisation}->{latitude} * 1, longitude => $_->{organisation}->{longitude} * 1, name => $_->{organisation}->{name}, + street_name => $_->{organisation}->{street_name}, + town => $_->{organisation}->{town}, + postcode => $_->{organisation}->{postcode}, } } $org_rs->all ];