Freeside:4:Documentation:Developer/FS/cust main/Location

From Freeside
< Freeside:4:Documentation:Developer‎ | FS‎ | cust main
Revision as of 07:34, 18 November 2015 by Jeremyd (talk | contribs) (Edit via perl MediaWiki framework (1.13))

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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).