kstorey
August 11th, 2008, 09:37 AM
I am working on a second problem in a conversion KRONOS payroll hour file with a single paycode that needs to be exploded into two separate paycodes.
For instance, when seeing a line with a paycode of 14 in my source data, I need to create two separate lines with two different pay codes. One for regular and one with a shift differential. The hours are exactly the same.
Below is a sample of the source text file:
Group Shift Earnings User
COMPANY DEPARTMENT SKILL CODE RESERV1 RESERV2 RESERV3 Class Date PayCd Category Code Hours Amount
------------------------------------------------------------------------------------------------------------------------------------
Employee: 000001000 Name: BROWN CHARLIE Badge: 000001000
CCMC 450 RN 402 1 7/29/08 CH 14 5 12.57
I have captured everything and set up a file layout (below) The "14" is the old Earnings Category from KRONOS and the "ERR" is a new calculated field for our new system. I called it Earning Number.
2 121 ERR 12.57 1 6230 0 14
The field names for the above are as follows:
The 2 is the Record Type
The 121 is the Employee number
The ERR is a calculated field called Earning Number that uses a If statement to replace the 14 (as defined below). It works perfectly for the other Earnings Categories in the report.
The 12.57 is the Hours field
The 1 is the Shift Field
The 6230 is the Department field
The Zero is a Flat Amt field
And the 14 is the KRONOS Earning Category field.
Basically, I need to create two separate lines to replace this line that gives me the same information in all the other fileds, except I need the Earning Number to be "010" for the first line and "090" for the second line.
Can anyone help me out?
Thanks,
Kevin Storey
For instance, when seeing a line with a paycode of 14 in my source data, I need to create two separate lines with two different pay codes. One for regular and one with a shift differential. The hours are exactly the same.
Below is a sample of the source text file:
Group Shift Earnings User
COMPANY DEPARTMENT SKILL CODE RESERV1 RESERV2 RESERV3 Class Date PayCd Category Code Hours Amount
------------------------------------------------------------------------------------------------------------------------------------
Employee: 000001000 Name: BROWN CHARLIE Badge: 000001000
CCMC 450 RN 402 1 7/29/08 CH 14 5 12.57
I have captured everything and set up a file layout (below) The "14" is the old Earnings Category from KRONOS and the "ERR" is a new calculated field for our new system. I called it Earning Number.
2 121 ERR 12.57 1 6230 0 14
The field names for the above are as follows:
The 2 is the Record Type
The 121 is the Employee number
The ERR is a calculated field called Earning Number that uses a If statement to replace the 14 (as defined below). It works perfectly for the other Earnings Categories in the report.
The 12.57 is the Hours field
The 1 is the Shift Field
The 6230 is the Department field
The Zero is a Flat Amt field
And the 14 is the KRONOS Earning Category field.
Basically, I need to create two separate lines to replace this line that gives me the same information in all the other fileds, except I need the Earning Number to be "010" for the first line and "090" for the second line.
Can anyone help me out?
Thanks,
Kevin Storey