The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Mileage

SYNOPSIS

  use Business::Payroll::US::Mileage;
  my $mileage = Business::Payroll::US::Mileage->new();
  if ($mileage->error())
  {
    die $mileage->errorMessage();
  }
  my $value = $mileage->calculate(date => $date, miles => $miles);

DESCRIPTION

This module will calculate Mileage re-imbursements for the US based on internal tables when given the number of miles.

Exported FUNCTIONS

scalar new()

        Creates a new instance of the object.

integer isValidArg( miles => $miles)

        miles - integer > 0
        date -  YYYYMMDD
  )

        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

integer calculate( miles - total miles to reimburse date - date to be paid on. affects tax rates format YYYYMMDD )

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

JT Moree - www.pcxperience.org

SEE ALSO

perl

1 POD Error

The following errors were encountered while parsing the POD:

Around line 209:

=back without =over