Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ledgersmb::dbobject::employee(3pm) [debian man page]

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

NAME
LedgerSMB::DBObject::Employee - LedgerSMB class for managing Employees SYOPSIS
This module creates object instances based on LedgerSMB's in-database ORM. METHODS
The following method is static: new ($LedgerSMB object); save Saves an employee. Inputs required entity_id May not be undef start_date end_date dob date may not be undef role Not the database role. Either manager or user ssn sales manager_id employee_number search Returns a list of employees matching set criteria: employeenumber (exact match) startdate_from (start of date range) startdate_to (end of date range) first_name (partial match) middle_name (partial match) last_name (partial match) notes (partial match) Undef values match all values. set_entity_class Sets the entity class to 3. get_managers Retrieves a set of managers and attaches to $self->{all_managers} save_location Saves the location data for the contact. Inputs are standard location inputs (line_one, line_two, etc) save_contact Saves contact information. Inputs are standard contact inputs: entity_id contact_class contact description save_bank_account Saves a bank account to an employee. Standard inputs (entity_id, iban, bic) get_metadata() This retrieves various information vor building the user interface. Among other things, it sets the following properties: $self->{ar_ap_acc_list} = qw(list of ar or ap accounts) $self->{cash_acc_list} = qw(list of cash accounts) get Returns the employee record with all the inputs required for "save" populated. Also populates: locations List of location info contacts List of contact info notes List of notes bank account List of bank accounts save_notes Saves a note to an employee entity. Standard inputs (note, subject, entity_id) delete_contact required request variables: contact_class_id: int id of contact class contact: text of contact information person_id: int of entity_credit_account.id, preferred value delete_location Deletes a record from the location side. Required request variables: location_id location_class_id person_id Returns true if a record was deleted. False otherwise. delete_bank_account Deletes a bank account Requires: entity_id bank_account_id Returns true if a record was deleted, false otherwise. get_user_info Attaches the user_id and username to the employee object. If the user does not have manage_users powers, this will simply return false 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 2012-03-10 LedgerSMB::DBObject::Employee(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