PerformTaxCalculations

Perform Tax Calculations

Major Business Rule

Object Name: B0700008

Parent DLL: CPAY

Location: Client/Server

Language: C

Functional Description
B0700008Perform Tax Calculations

Purpose

Perform ordinary tax calculations:VprtCalcTaxes (Connection Handle, Employee Handle)


Setup Notes and Prerequisites

The Perform Tax Calculations routine is called from the Business Function Vertex Tax Calculations 

(B0700010).  



Technical Specification


Parameters:

Connection handle

Employee handle


Related Tables

none

Related Business Functions

Source Name       Function Name
B0700010Vertex Tax Calculations

B0700004Set Tax Calculation Inputs

B0700009Create Tax Detail records

B0700058Establish connection to Vertex


Processing 

1.0Load Vertex cache to use the connection handle 


2.0Perform ordinary tax calculations  VprtCalcTaxes (Connection Handle, Employee Handle)


^

Data Structure

D0700008 - Perform Tax Calculations

Parameter NameData ItemData TypeReq/OptI/O/Both
mnCheckControlNumberCKCNMATH_NUMERICOPTNONE

A number used to group all payroll transactions for each payment or individual interim payment. This number is carried into the accounting 
journal entries and facilitates the update of the actual check number after payment printing is complete. This number is also used for 
automatically voiding payments. The payment work table contains both the actual check number and the check control number. All associated 
payment transactions are automatically reversed using the check control number. This is not the actual check number.

vConnectionHandlePIDcharOPTNONE

The number that identifies the batch or interactive program (batch or interactive object). For example, the number of the Sales Order Entry 
interactive program is P4210, and the number of the Print Invoices batch process report is R42565. The program ID is a variable length value. 
It is assigned according to a structured syntax in the form TSSXXX, where: T The first character of the number is alphabetic and identifies the 
type, such as P for Program, R for Report, and so on. For example, the value P in the number P4210 indicates that the object is a 
program. SS The second and third characters of the number are numeric and identify the system code. For example, the value 42 in the number P4210 
indicates that this program belongs to system 42, which is the Sales Order Processing system. XXX The remaining characters of the numer are 
numeric and identify a unique program or report. For example, the value 10 in the number P4210 indicates that this is the Sales Order Entry 
program.

vDataHandlePID1charOPTNONE

Program ID - 01

idDBConnectionHandleGENLNGIDOPTNONE

General purpose ID variable.

idEmployeeHandleGENLNGIDOPTNONE

General purpose ID variable.

cVacationFactorAAFcharOPTNONE

A value in this field represents the number of pay periods that this check is to cover. This is used by the Payroll system to direct the Vertex 
payroll tax program to treat the pay as a vacation advance. The computed taxes are automatically averaged over the number of pay periods. 
See the Vertex system manual for an explanation of the method of calculating tax on vacation advances.

cPayrollTypePATYcharOPTNONE

An option that specifies whether the payroll cycle includes interim payments only. Valid values are:    On Yes, the payroll cycle includes 
interim payments only.    Off No, the payroll cycle includes regular payments instead of or in addition to interim payments.

mnTotalGrossPayMATH01MATH_NUMERICOPTNONE

- - - Good Performance Low Value. 

Related Functions

B0700010 Vertex Tax Calculations

Related Tables

None