OM_BI_HDR_VW1(SQL View) |
Index Back |
---|---|
Bill Header VwDate Init. Issue # Description 02/23/01 JJM R-JDEUS-AP2YH Changed SQL to populate invoice field from SHIP_INF_INV and added restrictions to sync with ORD_TRK_SHIP_VW which is the view that supports order tracking for invoices. |
SELECT DISTINCT B.BUSINESS_UNIT , D.INVOICE , B.INVOICE_TYPE , B.BILL_TYPE_ID , B.BILL_SOURCE_ID , B.BILL_TO_CUST_ID , B.BILL_STATUS , B.CONTRACT_NUM FROM PS_BI_HDR B , PS_IN_DEMAND_BI D WHERE B.BUSINESS_UNIT = D.BUSINESS_UNIT_BI AND B.INVOICE = D.INVOICE AND D.DEMAND_SOURCE = 'OM' |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT_BI | Character(5) | VARCHAR2(5) NOT NULL | Billing Business Unit |
2 | INVOICE | Character(22) | VARCHAR2(22) NOT NULL |
Invoice
Default Value: NEXT Prompt Table: BI_HDR |
3 | INVOICE_TYPE | Character(3) | VARCHAR2(3) NOT NULL |
Invoice Type
ACR=Credit Bill ADJ=Adjustment Only bill ARB=Rebill Bill PRF=Pro Forma Invoice RAD=Regular bill with adjustments REG=Regular Bill Default Value: REG |
4 | BILL_TYPE_ID | Character(3) | VARCHAR2(3) NOT NULL |
Bill Type Identifier
Prompt Table: BI_TYPE_EF_VW |
5 | BILL_SOURCE_ID | Character(10) | VARCHAR2(10) NOT NULL |
Bill Source
Prompt Table: BI_SRC_EF_VW |
6 | BILL_TO_CUST_ID | Character(15) | VARCHAR2(15) NOT NULL |
Customer
Prompt Table: %EDITTABLE3 |
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 Default Value: NEW |
8 | CONTRACT_NUM | Character(25) | VARCHAR2(25) NOT NULL | Contract |