CA_BPSCHDIS_VW1(SQL View) |
Index Back |
---|---|
View for BP Schedule.This view is to generate the DIS lines for Milestone and %Complete Bill Plan. It retrieves the discount/surcharge by lines. |
SELECT DISC.CONTRACT_NUM , DISC.CONTRACT_LINE_NUM , DISC.SEQ_NUM , DISC.DISC_SUR_INDICATOR , DISC.PERCENTAGE , DISC.AMOUNT , DISC.CURRENCY_CD , DET.BILL_PLAN_ID , DET.BPLAN_LN_NBR FROM PS_CA_LN_REDUCTS DISC , PS_CA_DETAIL DET WHERE DISC.CONTRACT_NUM = DET.CONTRACT_NUM AND DISC.CONTRACT_LINE_NUM = DET.CONTRACT_LINE_NUM |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | CONTRACT_NUM | Character(25) | VARCHAR2(25) NOT NULL | Contract |
2 | CONTRACT_LINE_NUM | Number(3,0) | SMALLINT NOT NULL | Contract Line Num |
3 | SEQ_NUM | Number(3,0) | SMALLINT NOT NULL | Sequence |
4 | DISC_SUR_INDICATOR | Character(1) | VARCHAR2(1) NOT NULL |
Discount/Surcharge
D=Discount I=Installment Surcharge S=Surcharge |
5 | PERCENTAGE | Signed Number(7,2) | DECIMAL(5,2) NOT NULL | Percentage |
6 | AMOUNT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Amount |
7 | CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Currency Code |
8 | BILL_PLAN_ID | Character(10) | VARCHAR2(10) NOT NULL | Billing Plan ID |
9 | BPLAN_LN_NBR | Number(3,0) | SMALLINT NOT NULL | Bill Plan Line Number |