GPBR_TERM04_VW(SQL View) |
Index Back |
---|---|
eSocial Termination EventeSocial XML Framework View Table This record is used to generate informations for eSocial layout S-2299 - Labor Event Termination - TAG procJudTrab S-2399 - Labor Event - Workers who have no employment relationship End TAG - procJudTrab |
SELECT B.GPBR_DRIVER_SEQ ,B.GPBR_DRV_SPLIT_SEQ ,A.GPBR_TP_TRIB ,A.GPBR_PROC_NM ,CASE WHEN A.GPBR_TP_TRIB = 1 OR A.GPBR_TP_TRIB = 2 THEN A.CODE_SUSP_BRA ELSE 0 END ,CASE WHEN A.GPBR_TP_TRIB = 3 THEN A.GPBR_PROC_NM ELSE ' ' END FROM %Table(GPBR_STG_TERM04) A ,%Table(GPBR_DRIVER_DAT) B WHERE A.GPBR_DRIVER_SEQ = B.GPBR_DRIVER_SEQ AND A.GPBR_DRV_SPLIT_SEQ = B.GPBR_DRV_SPLIT_SEQ AND B.GPBR_STATUS = 'XRDY' |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | GPBR_DRIVER_SEQ | Number(30,0) | DECIMAL(30) NOT NULL | Driver Sequence |
2 | GPBR_DRV_SPLIT_SEQ | Number(20,0) | DECIMAL(20) NOT NULL | eSocial - Split Sequence |
3 | GPBR_TP_TRIB | Number(1,0) | SMALLINT NOT NULL | eSocial Tax Type |
4 | GPBR_PROC_NM | Character(30) | VARCHAR2(30) NOT NULL | eSocial Judicial Process |
5 | CODE_SUSP_BRA | Number(14,0) | DECIMAL(14) NOT NULL | Suspension Code |
6 | GPBR_PROC_N2 | Character(20) | VARCHAR2(20) NOT NULL | Suspension Code |