LM_BO003_B4_VW(SQL View) |
Index Back |
---|---|
For External Payment ReportFor External Payment Report |
SELECT S.OPRID , S.RUN_CNTL_ID , K.LM_ORG_DESCR , K.LM_ORGANIZATION_ID , R.NAME , K.LM_LE_LONG_NM , X.LM_PRG_ID , X.LM_PRG_CD , X.LM_PRG_LONG_NM , X.LM_PRG_STTS , %DateNull , %DateNull , W.LM_AMT_PAID , W.CURRENCY_CD , W.LM_PYMT_MTHD , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , P.XLATLONGNAME , Z.XLATLONGNAME , A.LANGUAGE_CD FROM PS_LM_ENRLMT_PYMT W , PS_LM_PRG_ENRL_VW X , PS_LM_ORG_LE_VW K , PS_LM_PER_NAME_VW R , PS_LM_RUNCTL_FI S , PSXLATITEM P , PS_PRCSRUNCNTL A , PSXLATITEM Z WHERE S.OPRID=A.OPRID AND S.RUN_CNTL_ID =A.RUN_CNTL_ID AND K.LM_ORG_TYPE = 'DEPT' AND X.LM_ORGANIZATION_ID = K.LM_ORGANIZATION_ID AND X.LM_PRG_REG_ID = W.LM_ENRLMT_ID AND X.LM_PERSON_ID = R.LM_PERSON_ID AND W.LM_PYMT_MTHD IN ('CASH','CHCK','CRCD') AND ( W.LM_PYMT_MTHD = S.LM_PYMT_MTHD_RPT OR S.LM_PYMT_MTHD_RPT = 'ALL') AND ( K.LM_ORG_TYPE = S.LM_ORG_TYPE_RPT OR S.LM_ORG_TYPE_RPT = 'ALL') AND ( X.LM_ORGANIZATION_ID = S.LM_ORGANIZATION_ID OR S.LM_ORGANIZATION_ID = 0) AND (( X.LM_PRG_ID = S.LM_PRG_ID) OR ( S.LM_PRG_ID = 0 AND S.LM_ACT_ID = 0)) AND P.EFFDT = ( SELECT MAX(P_ED.EFFDT) FROM PSXLATITEM P_ED WHERE P.FIELDNAME = P_ED.FIELDNAME AND P.FIELDVALUE = P_ED.FIELDVALUE AND P_ED.EFFDT <= %CurrentDateIn ) AND X.LM_PRG_STTS = P.FIELDVALUE AND P.FIELDNAME = 'LM_PRG_STTS' AND Z.EFFDT = ( SELECT MAX(Z_ED.EFFDT) FROM PSXLATITEM Z_ED WHERE Z.FIELDNAME = Z_ED.FIELDNAME AND Z.FIELDVALUE = Z_ED.FIELDVALUE AND Z_ED.EFFDT <= %CurrentDateIn ) AND W.LM_PYMT_MTHD = Z.FIELDVALUE AND Z.FIELDNAME = 'LM_PYMT_MTHD' |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | OPRID | Character(30) | VARCHAR2(30) NOT NULL | A user's ID (see PSOPRDEFN). |
2 | RUN_CNTL_ID | Character(30) | VARCHAR2(30) NOT NULL | Run Control ID |
3 | LM_ORG_DESCR | Character(50) | VARCHAR2(50) NOT NULL | Customer Description |
4 | LM_ORGANIZATION_ID | Number(15,0) | DECIMAL(15) NOT NULL | Organization ID |
5 | NAME | Character(50) | VARCHAR2(50) NOT NULL | Name |
6 | LM_LE_LONG_NM | Character(60) | VARCHAR2(60) NOT NULL | Learning Environment Long Name |
7 | LM_PRG_ID | Number(10,0) | DECIMAL(10) NOT NULL | Program ID is a unique identifier for curriculum and certification Programs. |
8 | LM_PRG_CD | Character(30) | VARCHAR2(30) NOT NULL | Program Code is a user defined field. This field allows duplicates and is not part of the primary key structure. |
9 | LM_PRG_LONG_NM | Character(200) | VARCHAR2(200) NOT NULL | Program Long Name |
10 | LM_PRG_STTS | Character(4) | VARCHAR2(4) NOT NULL |
Program Reg Status
CANC=Dropped COMP=Completed DECL=Decline ENRL=Registered EXPR=Expired INCO=Not Completed INPO=In-Progress PEAP=Pending Approval PEPA=Pending Payment PLAN=Planned PPYA=Payment Approval REIS=Reissue REVK=Revoked WAIV=Waived WARN=Warning |
11 | LM_START_DT | Date(10) | DATE | Start Date |
12 | LM_END_DT | Date(10) | DATE | End Date |
13 | LM_AMT_PAID | Number(23,3) | DECIMAL(22,3) NOT NULL | Amount Paid so far towards the Enrollment Fee |
14 | CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Currency Code |
15 | LM_PYMT_MTHD | Character(4) | VARCHAR2(4) NOT NULL |
Payment Method. The payment method can be ChargeBack, Training Units
CASH=Cash CHCK=Check CHGB=ChargeBack CRCD=Credit Card NOAP=Not Applicable PO=Purchase Order SEL=Select... TU=Training Units |
16 | COUNTY | Character(30) | VARCHAR2(30) NOT NULL | County |
17 | ADDRESS1 | Character(55) | VARCHAR2(55) NOT NULL | Address 1 |
18 | ADDRESS2 | Character(55) | VARCHAR2(55) NOT NULL | Address 2 |
19 | ADDRESS3 | Character(55) | VARCHAR2(55) NOT NULL | Address 3 |
20 | ADDRESS4 | Character(55) | VARCHAR2(55) NOT NULL | Address 4 |
21 | NUM1 | Character(6) | VARCHAR2(6) NOT NULL | Number 1 |
22 | CITY | Character(30) | VARCHAR2(30) NOT NULL | City |
23 | STATE | Character(6) | VARCHAR2(6) NOT NULL | State |
24 | POSTAL | Character(12) | VARCHAR2(12) NOT NULL | Postal |
25 | XLATLONGNAME | Character(30) | VARCHAR2(30) NOT NULL | Translate Long Name |
26 | LM_PYMT_MTHD_STR | Character(30) | VARCHAR2(30) NOT NULL | Payment Method |
27 | LANGUAGE_CD | Character(3) | VARCHAR2(3) NOT NULL | Language Code |