[BR_forum] 4-up W2

General development discussion.

Moderators: Susan Smith, admin, Gabriel

Post Reply
GTISDALE at tisdalecpa...

[BR_forum] 4-up W2

Post by GTISDALE at tisdalecpa... »

Steve:


And anyone else interested.

Attached is an NWP program to generate a 4-up 2008 W2. The program requires 4.18 and the version of FNSNAP.dll in the BR_PUB directory that includes FNPRINTNWP.

The function needs to be renamed to a library status (stick the word library in the DEF statement).

The function expects to be passed four arrays

A$ Is an array containing Employer Alpha data such as TIN, Name, Address
A Is a numeric array of company amounts, but it is not actually used by the 4-up library so it can be a dummy array
E$ Is an array of alpha employee information, SSN, Name address and codes for Box 12 and 14 and "X" for pension, sick pay etc
E Is a numeric array containing the data for the employee, wages, withholdings pension amount box 12 and 14 amounts etc

The function expects mat E$ and mat e to be three dimensional arrays containing one "column" for each employee. The function will then reiterate W2's column by column until all columns have been processed.

you can run the program itself to test it by simply running the program. The arrays are populated with "XXXXXXX" and 1.0

Contents of arrays

A$
1 Employer TIN
2 Company name
3 Company DBA
4 Company Address 1
5 Company Address 2
6 Company City
7 Company State
8 Company ZIP
9
10

E$
(E,1) Employee number (Control No.)
(E,2) Employee formatted SSN
(E,3) Employee First name and initial
(E,4) Employee last name
(E,5) Employee address 1
(E,6) Employee address 2
(E,7) Employee city
(E,8) Employee State
(E,9) Employee ZIP
(E,10) Statutory Employee "X"
(E,11) Retirement plan "X"
(E,12) Third party sick pay "X"
(E,13) Box 12a code
(E,14) Box 12b code
(E,15) Box 12c code
(E,16) Box 12d code
(E,17) Box 14a code
(E,18) Box 14b code
(E,19) Box 14c code
(E,20) State 1 abbreviation
(E,21) State 1 ID number
(E,22) Locality 1 name
(E,23)
(E,24) State 2 abbreviation
(E,25) State 2 ID number
(E,26) Locality 2 name

E
(E,1) Taxable wages Box 1
(E,2) Federal withholding Box 2
(E,3) FICA wages Box 3
(E,4) FICA withheld Box 4
(E,5) Medicare wages Box 5
(E,6) Medicare withheld Box 6
(E,7) Social security tips Box 7
(E,8) Allocated social security tips Box 8
(E,9) Advance EIC payments Box 9
(E,10) Dependant care benefits Box 10
(E,11) Nonqualified plans Box 11
(E,12) Box 12a amount
(E,13) Box 12b amount
(E,14) Box 12c amount
(E,15) Box 12d amount
(E,16) Box 14a amount
(E,17) Box 14b amount
(E,18) Box 14c amount
(E,19) State 1 wages Box 16
(E,20) State 1 withholding Box 17
(E,21) Local 1 wages Box 18
(E,22) Local withholding Box 19
(E,23)
(E,24) State 2 wages Box 16
(E,25) State 2 withholding Box 17
(E,26) Local 2 wages Box 18
(E,27) Local 2 withholding Box 19
(E,28)



George L. Tisdale, CPA
Tisdale CPA
75 Junction Sq Drive
Concord, MA 01742
(978) 369-5585

Post generated using Mail2Forum (http://www.mail2forum.com)
Post Reply