BI_CUST_HOLD_VW(SQL View) |
Index Back |
---|---|
BILLING CUSTOMER HOLD |
SELECT p.business_unit , p.invoice , s.setid , p. bill_to_cust_id , s.name1 , p.billing_specialist , p.bill_status , p.pc_distrib_status , p.bill_source_id , p.dt_invoiced , p.invoice_amount , p.bi_currency_cd FROM PS_BI_HDR p , ps_customer s WHERE p.TEMPLATE_IVC_FLG = 'N' AND p.CONSOL_HDR <> 'Y' AND p.bill_to_cust_id = s.cust_id AND s.setid = ( SELECT r.setid FROM ps_set_cntrl_rec r WHERE r.recname = 'CUSTOMER' AND r.setcntrlvalue = p.business_unit) AND EXISTS ( SELECT 'X' FROM PS_BI_HOLD_VW H WHERE H.CUST_ID = P.BILL_TO_CUST_ID AND H.SETID = S.SETID) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
2 | INVOICE | Character(22) | VARCHAR2(22) NOT NULL | Invoice |
3 | CUST_SETID | Character(5) | VARCHAR2(5) NOT NULL | Customer SetID |
4 | 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. |
5 | NAME1 | Character(40) | VARCHAR2(40) NOT NULL | Name 1 |
6 | BILLING_SPECIALIST | Character(8) | VARCHAR2(8) NOT NULL | Billing Specialist |
7 | BILL_STATUS | Character(3) | VARCHAR2(3) NOT NULL |
Bill Status
CAN=Canceled FNL=Finalized Bill HLD=Hold Bill INV=Invoiced Bill NEW=New Bill PND=Pending Approval RDY=Ready to Invoice TMP=Temporary Bill TMR=Temporary Ready Bill |
8 | PC_DISTRIB_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
PC Distribution Status
B=Budget Check D=Distributed G=Generated H=Hold I=Ignore M=Modified N=Not Distributed S=Staged |
9 | BILL_SOURCE_ID | Character(10) | VARCHAR2(10) NOT NULL | Bill Source |
10 | DT_INVOICED | Date(10) | DATE | Date Invoiced |
11 | INVOICE_AMOUNT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Invoice Amount |
12 | BI_CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Billing Currency Code |