HP_PAYCHKTAX_SP(SQL View) |
Index Back |
---|---|
US Taxes distrib to SuspenseThis view provides an insight as to what taxes were distributed to the Suspense Account |
SELECT A.COMPANY , A.PAYGROUP , A.PAY_END_DT , A.OFF_CYCLE , A.PAGE_NUM , A.LINE_NUM , A.SEPCHK , A.STATE , A.LOCALITY , A.TAX_CLASS , A.RESIDENT , A.NLGRS_CUR , A.TXGRS_CUR , A.TAX_CUR , A.TXGRS_AGG , A.TAX_AGG , A.TAX_NOT_TAKEN , A.TIPS_CUR , A.TIPS_DELAYED , A.AP_STATUS FROM PS_PAY_TAX A WHERE EXISTS ( SELECT B.COMPANY FROM PS_HP_PAY_CHK_SUSP B WHERE A.COMPANY = B.COMPANY AND A.PAYGROUP = B.PAYGROUP AND A.PAY_END_DT = B.PAY_END_DT AND A.OFF_CYCLE = B.OFF_CYCLE AND A.PAGE_NUM = B.PAGE_NUM AND A.LINE_NUM = B.LINE_NUM AND A.SEPCHK = B.SEPCHK) AND EXISTS ( SELECT D.ACCT_CD FROM PS_PAY_TAX_DIST D WHERE A.COMPANY = D.COMPANY AND A.PAYGROUP = D.PAYGROUP AND A.PAY_END_DT = D.PAY_END_DT AND A.OFF_CYCLE = D.OFF_CYCLE AND A.PAGE_NUM = D.PAGE_NUM AND A.LINE_NUM = D.LINE_NUM AND A.SEPCHK = D.SEPCHK AND A.STATE = D.STATE AND A.LOCALITY = D.LOCALITY AND A.TAX_CLASS = D.TAX_CLASS AND D.HP_RETDIST_STATUS = '0' AND EXISTS ( SELECT C.HP_ACCT_CD_SUSPNS FROM PS_DEPTBDGT_SUSPNS C WHERE C.DEPTID = D.DEPTID AND C.FISCAL_YEAR = D.FISCAL_YEAR AND C.HP_ACCT_CD_SUSPNS = D.ACCT_CD)) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | COMPANY | Character(3) | VARCHAR2(3) NOT NULL |
Company
Prompt Table: COMPANY_TBL |
2 | PAYGROUP | Character(3) | VARCHAR2(3) NOT NULL |
Pay Group
Prompt Table: PAYGROUP_TBL |
3 | PAY_END_DT | Date(10) | DATE NOT NULL |
Pay Period End Date
Prompt Table: PAY_CALENDAR |
4 | OFF_CYCLE | Character(1) | VARCHAR2(1) NOT NULL |
Off Cycle ?
Y/N Table Edit |
5 | PAGE_NUM | Number(5,0) | INTEGER NOT NULL | Page Nbr |
6 | LINE_NUM | Number(3,0) | SMALLINT NOT NULL | Line Nbr |
7 | SEPCHK | Number(2,0) | SMALLINT NOT NULL | Separate check number. |
8 | STATE | Character(6) | VARCHAR2(6) NOT NULL | State |
9 | LOCALITY | Character(10) | VARCHAR2(10) NOT NULL | Locality |
10 | TAX_CLASS | Character(3) | VARCHAR2(3) NOT NULL | Tax Balance Class |
11 | RESIDENT | Character(1) | VARCHAR2(1) NOT NULL |
Resident
Y/N Table Edit |
12 | NLGRS_CUR | Signed Number(12,2) | DECIMAL(10,2) NOT NULL | Current No Limit Gross |
13 | TXGRS_CUR | Signed Number(12,2) | DECIMAL(10,2) NOT NULL | Current Taxable Gross |
14 | TAX_CUR | Signed Number(12,2) | DECIMAL(10,2) NOT NULL | Current Tax |
15 | TXGRS_AGG | Signed Number(12,2) | DECIMAL(10,2) NOT NULL | Tax Gross Aggregate |
16 | TAX_AGG | Signed Number(12,2) | DECIMAL(10,2) NOT NULL | Tax Aggregate |
17 | TAX_NOT_TAKEN | Signed Number(12,2) | DECIMAL(10,2) NOT NULL | Tax Not Taken |
18 | TIPS_CUR | Signed Number(12,2) | DECIMAL(10,2) NOT NULL | Current Tips subject to tax |
19 | TIPS_DELAYED | Signed Number(12,2) | DECIMAL(10,2) NOT NULL | Current Tips Delayed for W/H |
20 | AP_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
AP Status
S=Sent to AP X=Extracted |