Function: Calculate Taxes by Date Range
Module:N0701710
Name:CalculateTaxesbyDateRange
Data Structure:D0701710
Related Table(s):F06166
Purpose:
The function will calculate the State Taxes paid by an employee over a specified date range. The function
will search the F06166 (Pay Check History Tax Ledger) for records matching the Address Numer (AN8) and
Home Company (HMCO) of a specific employee and Pay Tax Type (PTAX) = 'F' (State Income Tax). The function
will return the Gross Pay, Excludable Pay, Excess Pay, Taxable Pay, and Amount Tax Paid over that date
range.
Parameters:
ItemType Required Input/OutputDescription
mnAddress NumberMath NumericYIThe employee identification
number
szCompanyHomeStringYIThe company under which taxes paid
mnDateYearMath NumericYIThe 2-digit year taxes were paid
jdBeginDateRangejdeDateYIThe beginning date of
calculation
range
jdEndDateRangejdeDateYIThe end date of calculation range
mnTotalPayGrossMath NumericNOThe gross amount paid to employee
over the date range
mnTotalPayExcludableMath NumericNOThe pay excluded from taxes over the
date range
mnTotalPayExcessMath NumericNOThe excess pay over the date
range
(also excluded from taxes)
mnTotalAmountTaxMath NumericNOThe amount of taxes paid over
the
date range
mnTotalPayTaxableMath NumericN0The amount of pay to tax over
the
date range
D0701710 - Calculate Taxes by Date Range
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
mnAddressNumber | AN8 | MATH_NUMERIC | REQ | INPUT |
A number that identifies an entry in the Address Book system, such as employee, applicant, participant, customer, supplier, tenant, or
| ||||
szCompanyHome | HMCO | char | REQ | INPUT |
The company number where the employee records generally reside. | ||||
mnDateYear | DTEY | MATH_NUMERIC | REQ | INPUT |
A two-digit number that specifies the applicable year. If you leave this field blank, the program uses the system date. | ||||
jdBeginDateRange | PPED | JDEDATE | REQ | INPUT |
The last day of a processing period (pay period, month, quarter or year). | ||||
jdEndDateRange | PPED | JDEDATE | REQ | INPUT |
The last day of a processing period (pay period, month, quarter or year). | ||||
mnTotalPayGross | BW01 | MATH_NUMERIC | OPT | OUTPUT |
The gross amount of the transaction. The specific meaning, depending on the type of transaction, is as follows:
A Pay types: The total
| ||||
mnTotalPayExcludable | BX01 | MATH_NUMERIC | OPT | OUTPUT |
The amount of monthly gross pay excluded from the tax calculation. This amount includes deductions for retirement savings plans and
| ||||
mnTotalPayExcess | BE01 | MATH_NUMERIC | OPT | OUTPUT |
The amount of wages earned, but in excess of the annual limit, for tax calculation. | ||||
mnTotalAmountTax | BY01 | MATH_NUMERIC | OPT | OUTPUT |
The monthly amount of tax calculated. | ||||
mnTotalPayTaxable | BW02 | MATH_NUMERIC | OPT | OUTPUT |
The gross amount of the transaction. The specific meaning, depending on the type of transaction, is as follows:
A Pay types - The total
| ||||
szTaxAreaWork | TARA | char | OPT | NONE |
A code that identifies a geographical location and the tax authorities for an employee work site, including employee and employer statutory
|
None |
None |