CONSOL_OPSI_VW(SQL View) |
Index Back |
---|---|
AR - Open Consol Inv By Setid |
SELECT DISTINCT A.setid , A.cust_id , B.consol_bus_unit , B.consol_invoice FROM ps_customer A , PS_ITEM B WHERE a.cust_id=b.cust_id AND b.consol_invoice <> ' ' AND b.item_status = 'O' AND EXISTS ( SELECT 'x' FROM PS_SET_CNTRL_REC WHERE SETCNTRLVALUE = b.business_unit AND setid = a.setid AND RECNAME = 'CUSTOMER') |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | SETID_INQ | 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 | CONSOL_BUS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Specifies the Billing business unit associated with a consolidated bill. |
4 | CONSOL_INVOICE | Character(22) | VARCHAR2(22) NOT NULL | Specifies the invoice identifier associated with a consolidated bill. |