PAYMENT_BU_VW(SQL View) |
Index Back |
---|---|
Payments By Business Unit |
select distinct A.cust_id, B.payment_id, C.deposit_bu, C.deposit_id from ps_customer A, ps_payment B, PS_PAYMENT_ID_CUST C where A.cust_id = C.cust_id and B.deposit_bu=C.deposit_bu and B.deposit_id=C.deposit_id and B.payment_seq_num=C.payment_seq_num and C.business_unit IN ( select S.setcntrlvalue from ps_set_cntrl_rec S where S.RECNAME = 'CUSTOMER' AND S.setid = A.SETID ) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | 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. |
2 | PAYMENT_ID | Character(15) | VARCHAR2(15) NOT NULL | Identifies a customer payment. This is usually a check number but may be some other identifying number. |
3 | DEPOSIT_BU | Character(5) | VARCHAR2(5) NOT NULL | Identifies the business unit to which a deposit is posted. |
4 | DEPOSIT_ID | Character(15) | VARCHAR2(15) NOT NULL | Uniquely identifies a deposit of customer payments. The deposit ID can be manually assigned or system-generated. |