The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

StateIncome

SYNOPSIS

  use Business::Payroll::US::MO::StateIncome;
  my $stateIncome = Business::Payroll::US::MO::StateIncome->new();
  if ($stateIncome->error())
  {
    die $stateIncome->errorMessage();
  }

DESCRIPTION

This package will calculate the income tax based on a gross salary amount given.

Exported FUNCTIONS

scalar new()

        Creates a new instance of the object.
        takes:

integer calculate

  (
    gross,            # - gross pay
    date,             #- date of payment format YYYYMMDD
    method,         #- specifies method to use. currently only 1
    allowances    #, - state allowances claimed, integer
    period,             #- annual, semiannual, quarterly, monthly, semimonthly, biweekly, weekly, daily
    marital,             #- single, married, spouseWorks, head
    federal,             #- amount of federal tax withheld here
    fYTD,             #- total federal tax withheld year to date
    round,             #yes, no - defaults to yes
  )

integer isValidArg( gross => $gross)

        gross - floating point > 0
        date -  YYYYMMDD
        method -
        allowances - integer > 0
        period - annual, semiannual, quarterly, monthly, semimonthly, biweekly, weekly, daily
        marital - single | married | spouseWorks | head
        periodDays -
        round - yes, no
  )

        This method will check an argument sent in for validity.  returns 0 for no, 1 for yes .
        NOTE:  Only send one argument at a time.  If you send all you will not know which one is invalid

float annualize(amount, period)

        This method will change the given floating point to an
        annual number based on the corresponding period.
        i.e.  X, monthly will yield (X * 12)

string lookupDate (date)

        Returns the date closest to the given date that is less than or equal to it

string firstDate()

        This method will return the earliest date in the datatables.
        Combined with the lastDate method, you can find the date range of the data

string lastDate()

        This method will return the earliest date in the datatables.
        Combined with the firstDate method, you can find the date range of the data

NOTE

All data fields are accessible by specifying the object and pointing to the data member to be modified on the left-hand side of the assignment. Ex. $obj->variable($newValue); or $value = $obj->variable;

AUTHOR

Xperience, Inc. (mailto:admin@pcxperience.com)

SEE ALSO

perl(1)

2 POD Errors

The following errors were encountered while parsing the POD:

Around line 43:

You forgot a '=back' before '=head2'

Around line 497:

=back without =over