X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fcust_location.pm;h=0c5c02388041c7ea46833ee2c444a4326043ea37;hb=f8f4c51eaa6f5aa3d49672fe7a17f19fa22494c0;hp=da586f00c632aa22f46e2be282eaabbdd8928d59;hpb=03ceab71dad1e5eb366865d304e5e459cc905ce4;p=freeside.git diff --git a/FS/FS/cust_location.pm b/FS/FS/cust_location.pm index da586f00c..0c5c02388 100644 --- a/FS/FS/cust_location.pm +++ b/FS/FS/cust_location.pm @@ -234,6 +234,20 @@ sub line { $self->location_label; } +=item location_hash + +Returns a list of key/value pairs, with the following keys: address1, adddress2, +city, county, state, zip, country. + +=cut + +#geocode? not yet set + +sub location_hash { + my $self = shift; + map { $_ => $self->$_ } qw( address1 address2 city county state zip country ); +} + =back =head1 BUGS