LedgerSMB::Location(3pm)

LedgerSMB::Location3pm

Ledgersmb class for managing business locations

Syopsis

This module contains location management routines. This subclasses LedgerSMB::DBObject to provide access to automatice mapping of function arguments and the like.

Methods

delete
save

Saves the location. Properties to be set to be saved are:

* location_id: Optional: Overwrite location with this id. * address1: First line of the address. * address2: Second line of the address * address3: Third line of the address * city * state: state or province * zipcode: zipcode or mail code, * country: The id of the country as per the country table

get

Retrieves a location record based on the id field of the object. Merges the properties into the object.

search Returns anarrayref (and stores it on $self->{search_results} based on the search of addresses. Not currently used.

Attributes used as search criteria: address1: Partial match for address line 1 address2: Partial match for address line 2, city: Partial match for city name state: Partial match for state or province name, zipcode: Partial match for zip or postal code, country: Partial name for country name)

list_all

Provides a list of all locations, ordered by country, then city, then state.

delete

Deletes the location identified by id

Releases

2 releases since Debian 7 (Wheezy); the text changed 1 time.

  1. 7
  2. 8

From ledgersmb 1.3.40-1 in Debian 8 (Jessie). Parsed by carta from the page's man source.