Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ledgersmb::location(3pm) [debian man page]

LedgerSMB::Location(3pm)				User Contributed Perl Documentation				  LedgerSMB::Location(3pm)

NAME
LedgerSMB::Location - 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 Copyright (C) 2007, The LedgerSMB core team. This file is licensed under the Gnu General Public License version 2, or at your option any later version. A copy of the license should have been included with your software. perl v5.14.2 2011-07-06 LedgerSMB::Location(3pm)

Check Out this Related Man Page

LedgerSMB::DBObject::TaxForm(3pm)			User Contributed Perl Documentation			 LedgerSMB::DBObject::TaxForm(3pm)

NAME
LedgerSMB::DBObject::TaxFormm - Includes methods for saving and retrieving tax forms. SYNOPSIS
This module includes methods for saving and retrieving tax forms, and running reports. The tax forms are for reporting purchases or sales to tax bodies, and as of 1.3.0, the only tax forms officially included are those of the 1099-MISC and 1099-INT forms of the USA. Currently there is no abstraction layer to allow replacing the various reports on the fly, but this will have to be implemented in the future. METHODS
save Saves the tax form. Inputs are: form_name (required) The name of the form, eg, 1099-MISC country_id (required) The id of the country id (optional) The id of the tax form to overwrite In the future it is likely that we will add a taxform_sproc_id too as part of an abstraction layer. get($id) Retrieves information on the tax form specified and merges it with the current object. Properties set are: id ID of tax form form_name Name of tax form (eg, 1099-MISC) country_id ID of country attached to tax form get_full_list No inputs required. Provides a list of hashrefs (and attaches them to the form property of the object hashref). Each hashref has the same properties as are set by get($id) above, but also includes country_name which is the full name of the country (eg, 'United States'). Default ordering is by country name and then by tax form name. get_forms No inputs needed Returns a list of hashrefs representing tax forms. Each hashref contains the same properties as from get() above. Default ordering is by country id then tax form id. get_metadata Gets metadata for the screen. Sets the following hashref properties countries A list of all countries, for drop down box purposes. default_country The default country of the organization, to set the dropdown box. COPYRIGHT
Copyright (C) 2009 LedgerSMB Core Team. This file is licensed under the GNU General Public License version 2, or at your option any later version. Please see the included License.txt for details. perl v5.14.2 2012-03-25 LedgerSMB::DBObject::TaxForm(3pm)
Man Page