AR_CARD_SS_VW(SQL View) |
Index Back |
---|
SELECT DISTINCT S.SETID , H.CUST_ID , C.NAME1 , SUM(H.BAL_AMT) , H.BAL_CURRENCY FROM PS_ITEM H , PS_CUSTOMER C , PS_SET_CNTRL_REC S WHERE H.CUST_ID = C.CUST_ID AND H.ITEM_STATUS = 'O' AND H.PAYMENT_METHOD IN ('CC', 'CHK') AND S.RECNAME = 'CUSTOMER' AND S.SETCNTRLVALUE = H.BUSINESS_UNIT AND H.ITEM NOT IN ( SELECT X.ITEM FROM PS_ITEM X , PS_CCPAY_PEND_VW Y WHERE X.BUSINESS_UNIT = Y.BUSINESS_UNIT AND X.CUST_ID = Y.CUST_ID AND X.ITEM = Y.ITEM AND X.ITEM_LINE = Y.ITEM_LINE) GROUP BY S.SETID, H.CUST_ID, C.NAME1, H.BAL_CURRENCY |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | SETID | Character(5) | VARCHAR2(5) NOT NULL | SetID |
2 | CUST_ID | 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 | NAME1 | Character(40) | VARCHAR2(40) NOT NULL | Name 1 |
4 | BAL_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Item Balance |
5 | BAL_CURRENCY | Character(3) | VARCHAR2(3) NOT NULL | Currency Code - Bal Amount |