Difference between revisions of "Freeside:3:Documentation:Developer/FS/cust main/Location"

From Freeside
Jump to: navigation, search
m (Edit via perl MediaWiki framework (1.13))
 
(No difference)

Latest revision as of 20:07, 27 June 2012

NAME

FS::cust_main::Location - Location-related methods for cust_main

DESCRIPTION

These methods are available on FS::cust_main objects;

METHODS

bill_location
Returns an FS::cust_location object for the customer's billing address.
ship_location
Returns an FS::cust_location object for the customer's service address.
location TYPE
An alternative way of saying "bill_location or ship_location, depending on if TYPE is 'bill' or 'ship'".

CLASS METHODS

location_fields
Returns a list of fields found in the location objects. All of these fields can be read (but not written) by calling them as methods on the FS::cust_main object (prefixed with 'ship_' for the service address fields).