LedgerSMB Documentation

Description manuals and libraries
LedgerSMB Documentation > Perl Modules > LedgerSMB::Entity::Payroll::Wage
Source

NAME

LedgerSMB::Entity::Payroll::Wage - Wages and Salary Handling for LedgerSMB

DESCRIPTION

Implements a database mapping for 'wage instance' attributes.

SYNPOSIS

To retrieve a list of wages for an entity:

  my @wages = LedgerSMB::Entity::Person::Wage->list($entity_id);

To retrieve a list of wage categories for selection: my @classes = LedgerSMB::Entity::Person::Wage->classes($entity_id);

To save a new wage:

  my $wage = LedgerSMB::Entity::Person::Wage->new(%$request);
  $wage->save;

PROPERTIES

entry_id

This is the entry id (when set) of the wage.

type_id

This is the class id of the wage (when set)

rate

This is the rate that one is paid. Depending on class could be hourly, per month, or per unit produced.

METHODS

list($entity_id)

Retrns a list of wage objects for entity

types($country_id)

Returns a list of wage types

save

Saves the wage and attaches to the entity record

LICENSE AND COPYRIGHT

Copyright (C) 2018 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.