Lawson Software

Lawson Insight Technical Documentation

Generated by:
Documentation generated by Decision Analytics

ERDs Tables Elements Libraries App Forms


                             QUARTWAGE FILE

                             Quarterly Wage

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.

REFERENCED BY

BN300     BN305     HR170     HR70.1    PR265     PR50.1
PR50.3    PR290     PR52.1    PR291     PR292     PR297
PR298

UPDATED BY

BN500     PR195     PR197     PR300     PR560     PR82.1
PR85.1

FIELD NAME           DESCRIPTION/VALID VALUES                    UPDATED BY

QTW-COMPANY          Numeric 4                                   BN500   PR195
Company              The company number represents an            PR197   PR560
                     established company and is entered on       PR82.1  PR85.1
                     all function codes.

QTW-EMPLOYEE         Numeric 9                                   BN500   PR195
Employee             Contains the employee number. Each          PR197   PR560
                     person employed by the company is           PR82.1  PR85.1
                     assigned a unique number. The system
                     uses the employee number to correlate
                     all of the information related to that
                     person.

QTW-PAYROLL-YEAR     Numeric 4                                   BN500   PR195
Current Payroll Year Contains the payroll year.                  PR197   PR560
                                                                 PR82.1  PR85.1

QTW-QUARTER          Numeric 1                                   BN500   PR195
Quarter              Contains the fiscal quarter for the         PR197   PR560
                     data stored in this record.                 PR82.1  PR85.1
                     1 = First
                     2 = Second
                     3 = Third
                     4 = Fourth

QTW-PAY-SUM-GRP      Alpha 3                                     BN500   PR195
Payment Summary      Contains the pay summary group for the      PR197   PR560
Group                data stored on this record.                 PR82.1  PR85.1

QTW-PROCESS-LEVEL    Alpha 5                                     BN500   PR195
Process Level        Contains the process level.                 PR197   PR560
                                                                 PR82.1  PR85.1

QTW-WORK-STATE       Alpha 2                                     BN500   PR195
Work State           Contains the work state associated with     PR197   PR560
                     this record.                                PR82.1  PR85.1

QTW-HOURS            Signed 7.2                                  BN500   PR195
Hours                Contains the hours associated with this     PR197   PR292
                     record.                                     PR560   PR82.1
                                                                 PR85.1

QTW-WAGE-AMOUNT      Signed 13.2                                 BN500   PR195
Wage Amount          Contains the sum of all wage amounts        PR197   PR50.1
                     from the time records.                      PR50.3  PR560
                                                                 PR82.1  PR85.1

QTW-NON-CASH-AMT     Signed 13.2                                 PR195   PR197
Non Cash Amt         Contains non-cash amounts associated        PR560   PR82.1
                     with this record.                           PR85.1

QTW-OT-CALC-HOURS    Signed 7.2                                  BN500   PR195
Ot Calc Hours        Contains hours calculated as overtime       PR197   PR82.1
                     pay for this record.                        PR85.1

QTW-COUNTRY-CODE     Alpha 2                                     PR195   PR197
Country Code         The country code.  Required for VAT and     PR560   PR82.1
                     intrastat reporting.  Must be defined in    PR85.1
                      IN01.1 (Country Maintenance).


QTW-BUS-NBR-GRP      Alpha 4                                     PR195   PR197
Bus Nbr Grp          Contains the business number group.         PR560   PR82.1
                                                                 PR85.1

QTW-REPORT-ENTITY    Alpha 5                                     PR195   PR197
Report Entity        Contains the report entity.                 PR560   PR82.1
                                                                 PR85.1
                     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.

QTW-QC-ENT-NBR-GRP   Alpha 4                                     PR195   PR197
Qc Ent Nbr Grp       Contains the Quebec enterprise number       PR560   PR82.1
                     group.                                      PR85.1

QTW-CURRENCY-CODE    Alpha 5                                     PR195   PR197
Currency Code        This field contains the company base        PR560   PR82.1
                     currency code established in Company        PR85.1
                     (GL10.1 ).

QTW-CURR-ND          Numeric 1                                   PR195   PR197
Currency Number of   Represents the number of decimals           PR560   PR82.1
Decimals             defined for the currency of the object.     PR85.1

QTW-PENSION          Alpha 1                                     PR560
Pension              Y = Yes
                     " " = No

                         QUARTWAGE FILE INDEX

NAME      KEY FIELDS    DESCRIPTION / SUBSET CONDITION           USED IN

QTWSET1   COMPANY                                                BN300   BN305
          EMPLOYEE                                               BN500   HR170
          PAYROLL-YEAR                                           HR70.1  PR195
          QUARTER                                                PR197   PR265
          COUNTRY-CODE                                           PR300   PR50.1
          PAY-SUM-GRP                                            PR50.3  PR560
          REPORT-ENTITY                                          PR82.1  PR85.1
          BUS-NBR-GRP
          QC-ENT-NBR-GRP
          PROCESS-LEVEL
          WORK-STATE
          PENSION

QTWSET2   COMPANY       KeyChange                                PR197   PR290
          COUNTRY-CODE                                           PR52.1  PR85.1
          PAYROLL-YEAR
          EMPLOYEE
          PAY-SUM-GRP
          QUARTER
          REPORT-ENTITY
          BUS-NBR-GRP
          QC-ENT-NBR-GRP
          PROCESS-LEVEL
          WORK-STATE

QTWSET3   COMPANY       KeyChange, Subset                        PR291   PR292
          COUNTRY-CODE  Where COUNTRY-CODE = "US"                PR297   PR298
          EMPLOYEE
          PAYROLL-YEAR
          REPORT-ENTITY
          PROCESS-LEVEL
          PAY-SUM-GRP
          QUARTER
          WORK-STATE

QTWSET4   COMPANY       Subset
          COUNTRY-CODE  Where COUNTRY-CODE = "US"
          PAYROLL-YEAR
          QUARTER
          EMPLOYEE
          PAY-SUM-GRP
          PROCESS-LEVEL
          WORK-STATE

QTWSET5   COMPANY       Subset
          COUNTRY-CODE  Where COUNTRY-CODE =  "CA"
          EMPLOYEE      And   PENSION      != "Y"
          PAYROLL-YEAR
          REPORT-ENTITY
          BUS-NBR-GRP
          PROCESS-LEVEL
          PAY-SUM-GRP
          QUARTER
          WORK-STATE

QTWSET6   COMPANY       Subset
          COUNTRY-CODE  Where COUNTRY-CODE =  "CA"
          EMPLOYEE      And   PENSION      != "Y"
          PAYROLL-YEAR
          REPORT-ENTITY
          QC-ENT-NBR-GRP
          PROCESS-LEVEL
          PAY-SUM-GRP
          QUARTER
          WORK-STATE

                         QUARTWAGE FILE RELATIONS

ONE TO ONE RELATIONS


RELATION       RELATED
 NAME           FILE        INTEGRITY RULES / FIELD MATCH

Company        PRSYSTEM     Required

                            QTW-COMPANY           -> PRS-COMPANY  (PRSSET1)
                            Spaces                -> PRS-PROCESS-LEVEL

Employee       EMPLOYEE     Required

                            QTW-COMPANY           -> EMP-COMPANY
                            QTW-EMPLOYEE          -> EMP-EMPLOYEE

Pay Sum Grp    PAYSUMGRP    Required

                            QTW-COMPANY           -> PSG-COMPANY
                            QTW-PAY-SUM-GRP       -> PSG-PAY-SUM-GRP

Pik Pay Class  PSGRELATE    Not Required

                            QTW-COMPANY           -> PSR-COMPANY
                            PRS-PAY-IN-KIND       -> PSR-PAY-CLASS
                            QTW-PAY-SUM-GRP       -> PSR-PAY-SUM-GRP

Process Level  PRSYSTEM     Required

                            QTW-COMPANY           -> PRS-COMPANY
                            QTW-PROCESS-LEVEL     -> PRS-PROCESS-LEVEL

Prqcentgrp     PRQCENTGRP   Not Required

                            QTW-COMPANY           -> PQC-COMPANY
                            QTW-PROCESS-LEVEL     -> PQC-PROCESS-LEVEL
                            QTW-QC-ENT-NBR-GRP    -> PQC-QC-ENT-NBR-GRP

Tips Pay Class PSGRELATE    Not Required

                            QTW-COMPANY           -> PSR-COMPANY
                            PRS-TIPS              -> PSR-PAY-CLASS
                            QTW-PAY-SUM-GRP       -> PSR-PAY-SUM-GRP

Work State     PRSTATE      Required
                            When QTW-WORK-STATE != Spaces

                            QTW-WORK-STATE        -> PSA-STATE

                         QUARTWAGE FILE RELATIONS

ONE TO MANY RELATIONS


RELATION       RELATED
 NAME           FILE        INTEGRITY RULES / FIELD MATCH

Wage Detail    PRTIME

                            QTW-COMPANY           -> PRT-COMPANY
                            QTW-EMPLOYEE          -> PRT-EMPLOYEE
                            QTW-PAYROLL-YEAR      -> PRT-PAYROLL-YEAR
                            QTW-QUARTER           -> PRT-QUARTER
                            QTW-PAY-SUM-GRP       -> PRT-PAY-SUM-GRP
                            QTW-PROCESS-LEVEL     -> PRT-PROCESS-LEVEL
                            QTW-WORK-STATE        -> PRT-WORK-STATE
                                                     PRT-CHECK-ID
                                                     PRT-TIME-SEQ