BI_LOC_SUM2_VW(SQL View) |
Index Back |
---|---|
Ltr of Credit Summary View 2This view summarizes bill line's billable net extended amounts per invoice and bill status. |
SELECT A.BUSINESS_UNIT ,A.INVOICE , A.BILL_STATUS ,SUM(B.NET_EXTENDED_AMT) , A.BI_CURRENCY_CD FROM PS_BI_HDR A , PS_BI_LINE B WHERE A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.INVOICE = B.INVOICE AND A.BILL_STATUS IN ('TMP', 'TMR', 'NEW', 'PND', 'RDY', 'HLD', 'FNL', 'INV') AND A.PC_DISTRIB_STATUS <> 'I' AND A.LOC_DOC_ID <> ' ' AND A.CONSOL_HDR = 'N' AND B.ANALYSIS_TYPE NOT IN ('DEF', 'OLT', 'WTO', 'DEL', 'WWO') GROUP BY A.BUSINESS_UNIT, A.INVOICE, A.BILL_STATUS, A.BI_CURRENCY_CD |
# | 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 | 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 |
4 | NET_EXTENDED_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Net Extended Amt |
5 | BI_CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Billing Currency Code |