GM_PM_EX_LMT_VW(SQL View) |
Index Back |
---|---|
Expense Billing Budget Mark Up |
SELECT A.BUSINESS_UNIT ,A.PROPOSAL_ID ,A.VERSION_ID ,A.SUB_PROP_NBR ,A.BUDGET_ID ,%DecMult(B.SCEN_ADJUST_PCT_EX, .01) ,SUM(A.BILL_AMT) ,%Round(SUM( %DecMult(A.BILL_AMT ,%DecMult(B.SCEN_ADJUST_PCT_EX, .01)) + A.BILL_AMT ),3) ,A.CURRENCY_CD FROM PS_GM_OPPTY_DTL_EX A ,PS_GM_PROPOSAL B WHERE A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.PROPOSAL_ID = B.PROPOSAL_ID AND A.VERSION_ID = B.VERSION_ID AND B.CURRENT_VERSION = 'Y' AND B.SUBMIT_STATUS = 'CMTD' AND B.PPSL_TO_CNTRCT_FLG IN ('N','P') GROUP BY A.BUSINESS_UNIT, A.PROPOSAL_ID, A.VERSION_ID, A.SUB_PROP_NBR, A.BUDGET_ID, B.SCEN_ADJUST_PCT_EX, A.CURRENCY_CD HAVING SUM(A.BILL_AMT) <> 0 |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
2 | PROPOSAL_ID | Character(25) | VARCHAR2(25) NOT NULL | Proposal ID |
3 | VERSION_ID | Character(7) | VARCHAR2(7) NOT NULL | Version ID |
4 | SUB_PROP_NBR | Character(15) | VARCHAR2(15) NOT NULL | SUB_PROP_NBR |
5 | BUDGET_ID | Character(15) | VARCHAR2(15) NOT NULL | BUDGET_ID |
6 | SCEN_ADJ_DEC_EX | Signed Number(9,4) | DECIMAL(7,4) NOT NULL | Adjusted To Decimal |
7 | BILL_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Bill Amount |
8 | BILL_AMT_EXP | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Bill Amount |
9 | CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Currency Code |