PRHOURS – Payroll Hours
- System
- Payroll (PR)
- Prefix
PHS- Primary key
COMPANY,EMPLOYEE,HOURS-TYPE,PAYROLL-YEAR- Fields
- 11
- Updated by
- 7 programs
- Referenced by
- 2 programs
PRHOURS is the Payroll Hours table in Lawson Payroll (prefix PHS). It is indexed by COMPANY, EMPLOYEE, HOURS-TYPE, PAYROLL-YEAR (PHSSET1); alternate indexes: PHSSET2 and PHSSET3. It is related 1:1 to PRSYSTEM, EMPLOYEE and PAEMPLOYEE and 1:M to PRTIME and QUARTWAGE. It is updated by HR00.1, HR01.1, HR11.1, PA115, PR188, PR84.1 and PR88.1 and referenced by PR284 and TA148. The table has 11 fields, 3 indexes and 5 documented relations.
About PRHOURS
No description in the Lawson data dictionary.
Fields (11)
Column = COBOL field name without the PHS- prefix, hyphens → underscores. Derived fields are computed by the application and are not stored. PK = primary key (present in every index); SETn = leading/alternate key of that index.
| Field / column | Type | Description & values | Updated by |
|---|---|---|---|
#PHS-COMPANY PKCOMPANY | Numeric 4 | — | PR188, PR84.1, PR88.1 |
#PHS-EMPLOYEE PKEMPLOYEE | Numeric 9 | Contains the employee number. Each person employed by the company is assigned a unique number. The system uses the employee number to correlate all of the information related to that person. | PR188, PR84.1, PR88.1 |
#PHS-HOURS-TYPE PKHOURS_TYPE | Numeric 2 | —
| PR188, PR84.1, PR88.1 |
#PHS-PAYROLL-YEAR PKPAYROLL_YEAR | Numeric 4 | Contains the payroll year in which the allocation was taken. | PR188, PR84.1, PR88.1 |
#PHS-HOURSHOURS | Signed 7.2 | Contains the hours. | PR188, PR88.1 |
#PHS-HOURS-FROZENHOURS_FROZEN | Signed 7.2 | — | PR188, PR84.1, PR88.1 |
#PHS-DATE-FROZENDATE_FROZEN | Numeric 8 (yyyymmdd) | — | PR188, PR84.1, PR88.1 |
#PHS-TOT-PRHOURSTOT_PRHOURS | Derived | — | — |
#PHS-DATE-STAMPDATE_STAMP | Numeric 8 (yyyymmdd) | This field contains the server date (month, date, and year) of the last change to this record. | PR188, PR88.1 |
#PHS-TIME-STAMPTIME_STAMP | Numeric 6 (hhmmss) | Contains the server time (hour, minute, and second) when the record was last changed. | PR188, PR88.1 |
#PHS-USER-IDUSER_ID | Alpha 10 (Lower Case) | — | PR188, PR88.1 |
Indexes (3)
Keys are listed in index order; ↓ marks a descending key. Every documented Lawson index is unique unless flagged Duplicates; Subset indexes carry a Where condition.
| Index | Keys | Flags | Condition | Used in |
|---|---|---|---|---|
PHSSET1 |
| Primary | HR00.1, HR01.1, HR11.1, PA115, PR188, PR284, PR84.1, PR88.2 +1 more | |
PHSSET2 |
| PR88.1 | ||
PHSSET3 |
| PR188 |
Relations
One to one (3) — lookups and parents
| Relation | Table | Rules | Condition | Field map | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Company | PRSYSTEM | Required |
| |||||||
| Employee | EMPLOYEE | Required |
| |||||||
| Paemployee | PAEMPLOYEE | Not Required |
|
One to many (2) — child tables
| Relation | Table | Rules | Condition | Field map | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Prtime | PRTIME |
| ||||||||||||||||||||||||||||||||||||||
| Quartwage | QUARTWAGE |
|
Programs
Updated by (7)
- HR00.1 Company
- HR01.1 Process Level
- HR11.1 Employee
- PA115 Employee Purge
- PR188 Payroll Hours Update
- PR84.1 Seniority Recalculation Inquiry
- PR88.1 Payroll Hours