CUST_CREDIT_VW(SQL View) |
Index Back |
---|---|
Customer Credit View |
SELECT CRED.SETID , CRED.CUST_ID , CRED.EFFDT , CRED.EFF_STATUS , CRED.CURRENCY_CD , CRED.CR_LIMIT , CORP.CR_LIMIT_CORP FROM PS_CUST_CREDIT CRED , PS_CUST_CREDIT CORP , PS_CUSTOMER CUST WHERE CRED.CUST_ID = CUST.CUST_ID AND CRED.SETID = CUST.SETID AND CRED.EFFDT = ( SELECT MAX(I1.EFFDT) FROM PS_CUST_CREDIT I1 WHERE I1.SETID = CRED.SETID AND I1.CUST_ID = CRED.CUST_ID AND I1.EFFDT <= %CurrentDateIn ) AND CRED.EFF_STATUS = 'A' AND CORP.CUST_ID = CUST.CORPORATE_CUST_ID AND CORP.EFFDT = ( SELECT MAX(I2.EFFDT) FROM PS_CUST_CREDIT I2 WHERE I2.CUST_ID = CUST.CORPORATE_CUST_ID AND I2.EFFDT <= %CurrentDateIn ) AND CORP.EFF_STATUS = 'A' AND CUST.CUST_STATUS IN ('A', 'I') |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | Character(5) | VARCHAR2(5) NOT NULL | SetID | |
2 | Character(15) | VARCHAR2(15) NOT NULL | Uniquely identifies an organizational entity that purchases goods or services from the enterprise. Represents the sold-to customer which is the customer organization that places orders. The CUST_ID may or may not be the same as the identifiers for the bill-to and ship-to locations. | |
3 | Date(10) | DATE | Effective Date | |
4 | EFF_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
Effective Status
A=Active I=Inactive |
5 | CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Currency Code |
6 | CR_LIMIT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Credit Limit |
7 | CR_LIMIT_CORP | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Corporate Credit Limit |