QUARTWAGE – Quarterly Wage

System
Payroll (PR)
Prefix
QTW
Primary key
COMPANY, EMPLOYEE, PAYROLL-YEAR, QUARTER, COUNTRY-CODE, PAY-SUM-GRP, REPORT-ENTITY, BUS-NBR-GRP, QC-ENT-NBR-GRP, PROCESS-LEVEL, WORK-STATE, PENSION
Fields
21
Updated by
41 programs
Referenced by
26 programs

QUARTWAGE is the Quarterly Wage table in Lawson Payroll (prefix QTW). It is indexed by COMPANY, EMPLOYEE, PAYROLL-YEAR, QUARTER, COUNTRY-CODE, PAY-SUM-GRP, REPORT-ENTITY, BUS-NBR-GRP, QC-ENT-NBR-GRP, PROCESS-LEVEL, WORK-STATE, PENSION (QTWSET1); alternate indexes: QTWSET10, QTWSET2, QTWSET3 and QTWSET4. It is related 1:1 to PRSYSTEM, EMPLOYEE, PAYSUMGRP, PSGRELATE, PRQCENTGRP and PRSTATE and 1:M to PRTIME. It is updated by BN305, HR11.1, HR11.2, HR11.4, HR28.1, HR511, LT101, LT111 and 33 more and referenced by BN300, HR170, HR70.1, PA490, PR160, PR180, PR188, PR240 and 18 more. The table has 21 fields, 5 indexes and 9 documented relations.

About QUARTWAGE

This file contains all pay history for an employee, summarized by quarter. This file is updated every time you run PR199 (Payroll Close) to close a payroll cycle. One of the primary functions of this file is to produce W-2 information. Therefore, pay history for an employee is stored by work state, process level, and department. Creating records by process level is necessary to accommodate tax processing by process level, and including department level storage enables reporting summary totals by department.

Fields (21)

Column = COBOL field name without the QTW- prefix, hyphens → underscores. Derived fields are computed by the application and are not stored.

Field / columnTypeDescription & valuesUpdated by
QTW-COMPANY PK
COMPANY
Numeric 4PR195, PR197, PR560, PR582, PR82.1, PR85.1
QTW-EMPLOYEE PK
EMPLOYEE
Numeric 9Contains 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.PR195, PR197, PR560, PR582, PR82.1, PR85.1
QTW-PAYROLL-YEAR PK
PAYROLL_YEAR
Numeric 4Contains the payroll year.PR195, PR197, PR560, PR582, PR82.1, PR85.1
QTW-QUARTER PK
QUARTER
Numeric 1Contains the fiscal quarter for the data stored in this record.
  • 1 First
  • 2 Second
  • 3 Third
  • 4 Fourth
PR195, PR197, PR560, PR582, PR82.1, PR85.1
QTW-PAY-SUM-GRP PK
PAY_SUM_GRP
Alpha 3Contains the pay summary group for the data stored on this record.PR195, PR197, PR560, PR582, PR82.1, PR85.1
QTW-PROCESS-LEVEL PK
PROCESS_LEVEL
Alpha 5Contains the process level.PR195, PR197, PR560, PR582, PR82.1, PR85.1
QTW-WORK-STATE PK
WORK_STATE
Alpha 2Contains the work state associated with this record.PR195, PR197, PR240, PR241, PR242, PR560, PR582, PR82.1 +1 more
QTW-HOURS
HOURS
Signed 7.2Contains the hours associated with this record.PR195, PR197, PR292, PR560, PR582, PR82.1, PR85.1
QTW-WAGE-AMOUNT
WAGE_AMOUNT
Signed 13.2Contains the sum of all wage amounts from the time records.PR195, PR197, PR50.1, PR50.3, PR560, PR582, PR82.1, PR85.1
QTW-NON-CASH-AMT
NON_CASH_AMT
Signed 13.2Contains non-cash amounts associated with this record.PR195, PR197, PR560, PR582, PR80.2, PR82.1, PR85.1
QTW-OT-CALC-HOURS
OT_CALC_HOURS
Signed 7.2Contains hours calculated as overtime pay for this record.PR195, PR197, PR582, PR82.1, PR85.1
QTW-COUNTRY-CODE PK
COUNTRY_CODE
Alpha 2The country code. Required for VAT and intrastat reporting. Must be defined in IN01.1 (Country Maintenance).PR195, PR197, PR560, PR582, PR82.1, PR85.1
QTW-BUS-NBR-GRP PK
BUS_NBR_GRP
Alpha 4Contains the business number group.PR195, PR197, PR560, PR582, PR82.1, PR85.1
QTW-REPORT-ENTITY PK
REPORT_ENTITY
Alpha 5Contains the report entity. Report Entity is the Process Level or Company that this Process Level reports to for tax reporting. If the Process Level itself is independent then the independent Process Level is the Report Entity. If the Process Level is non independent and is associated to a independent head Process Level then the independent head Process Level is the Report Entity. If the Process Level is non independent and is not associated to a independent head Process Level then the Company is the Report Entity.PR195, PR197, PR560, PR582, PR82.1, PR85.1
QTW-QC-ENT-NBR-GRP PK
QC_ENT_NBR_GRP
Alpha 4Contains the Quebec enterprise number group.PR195, PR197, PR560, PR582, PR82.1, PR85.1
QTW-CURRENCY-CODE
CURRENCY_CODE
Alpha 5This field contains the company base currency code established in Company (GL10.1 ).PR195, PR197, PR560, PR582, PR82.1, PR85.1
QTW-CURR-ND
CURR_ND
Numeric 1The number of decimals assigned to a particular account as determined by the account currency.PR195, PR197, PR560, PR582, PR82.1, PR85.1
QTW-PENSION PK
PENSION
Alpha 1" " = No
  • Y Yes
PR195, PR197, PR560, PR582, PR82.1, PR85.1
QTW-PAY-UNITS
PAY_UNITS
Signed 7.2PR195, PR197, PR560, PR582, PR82.1, PR85.1
QTW-UNIT-MEASURE
UNIT_MEASURE
Alpha 12PR195, PR197, PR560, PR582, PR82.1, PR85.1
QTW-HM-PROC-LEVEL
HM_PROC_LEVEL
Alpha 5BN305, HR11.1, HR11.2, HR11.4, HR28.1, HR511, LT101, LT111 +30 more

Indexes (5)

Keys marked * are descending. Every documented Lawson index is unique unless flagged Duplicates; Subset indexes carry a Where condition.

IndexKeysFlagsConditionUsed in
QTWSET1COMPANY, EMPLOYEE, PAYROLL-YEAR, QUARTER, COUNTRY-CODE, PAY-SUM-GRP, REPORT-ENTITY, BUS-NBR-GRP, QC-ENT-NBR-GRP, PROCESS-LEVEL, WORK-STATE, PENSIONPrimaryBN300, BN305, HR11.1, HR11.2, HR11.4, HR28.1, HR511, LT101 +22 more (list truncated in source)
QTWSET10COMPANY, HM-PROC-LEVEL, EMPLOYEE, PAYROLL-YEAR, QUARTER, COUNTRY-CODE, PAY-SUM-GRP, REPORT-ENTITY, BUS-NBR-GRP, QC-ENT-NBR-GRP, PROCESS-LEVEL, WORK-STATE, PENSIONKeyChangeHR170, HR70.1, PR560
QTWSET2COMPANY, COUNTRY-CODE, PAYROLL-YEAR, EMPLOYEE, PAY-SUM-GRP, QUARTER, REPORT-ENTITY, BUS-NBR-GRP, QC-ENT-NBR-GRP, PROCESS-LEVEL, WORK-STATE, PENSIONKeyChangePR160, PR180, PR240, PR241, PR242, PR243, PR244, PR245 +4 more
QTWSET3COMPANY, COUNTRY-CODE, EMPLOYEE, PAYROLL-YEAR, REPORT-ENTITY, PROCESS-LEVEL, PAY-SUM-GRP, QUARTER, WORK-STATEKeyChange, SubsetWhere COUNTRY-CODE = "US" And PENSION != "Y"PR252, PR291, PR292, PR297, PR299
QTWSET4COMPANY, COUNTRY-CODE, PAYROLL-YEAR, QUARTER, EMPLOYEE, PAY-SUM-GRP, PROCESS-LEVEL, WORK-STATE, REPORT-ENTITY, PENSIONSubsetWhere COUNTRY-CODE = "US"PA490, PR271, PR287, PR292

Relations

One to one (8) — lookups and parents

RelationTableRulesConditionField map
CompanyPRSYSTEMRequiredQTW-COMPANYPRS-COMPANY, SpacesPRS-PROCESS-LEVEL
EmployeeEMPLOYEERequiredQTW-COMPANYEMP-COMPANY, QTW-EMPLOYEEEMP-EMPLOYEE
Pay Sum GrpPAYSUMGRPRequiredQTW-COMPANYPSG-COMPANY, QTW-PAY-SUM-GRPPSG-PAY-SUM-GRP
Pik Pay ClassPSGRELATENot RequiredQTW-COMPANYPSR-COMPANY, PRS-PAY-IN-KINDPSR-PAY-CLASS, QTW-PAY-SUM-GRPPSR-PAY-SUM-GRP
Process LevelPRSYSTEMRequiredQTW-COMPANYPRS-COMPANY, QTW-PROCESS-LEVELPRS-PROCESS-LEVEL
PrqcentgrpPRQCENTGRPNot RequiredQTW-COMPANYPQC-COMPANY, QTW-PROCESS-LEVELPQC-PROCESS-LEVEL, QTW-QC-ENT-NBR-GRPPQC-QC-ENT-NBR-GRP
Tips Pay ClassPSGRELATENot RequiredQTW-COMPANYPSR-COMPANY, PRS-TIPSPSR-PAY-CLASS, QTW-PAY-SUM-GRPPSR-PAY-SUM-GRP
Work StatePRSTATERequiredWhen QTW-WORK-STATE != SpacesQTW-WORK-STATEPSA-STATE

One to many (1) — child tables

RelationTableRulesConditionField map
Wage DetailPRTIMEQTW-COMPANYPRT-COMPANY, QTW-EMPLOYEEPRT-EMPLOYEE, QTW-PAYROLL-YEARPRT-PAYROLL-YEAR, QTW-QUARTERPRT-QUARTER, QTW-PAY-SUM-GRPPRT-PAY-SUM-GRP, QTW-PROCESS-LEVELPRT-PROCESS-LEVEL, QTW-WORK-STATEPRT-WORK-STATE, PRT-CHECK-ID, PRT-TIME-SEQ

Programs

Updated by (41)

Referenced by (26)