PV_REQ_VAT_VW(SQL View) |
Index Back |
---|---|
Req Fluid Approval VAT view |
SELECT A.BUSINESS_UNIT , A.REQ_ID , SUM(A.VAT_AMT) , SUM(B.MERCHANDISE_AMT) , SUM(VAT_AMT + MERCHANDISE_AMT) , A.CURRENCY_CD FROM PS_REQ_LN_DIST_VAT A , PS_REQ_LN_DISTRIB B WHERE A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.REQ_ID = B.REQ_ID AND A.LINE_NBR = B.LINE_NBR AND A.SCHED_NBR = B.SCHED_NBR AND A.DISTRIB_LINE_NUM = B.DISTRIB_LINE_NUM AND B.DISTRIB_LN_STATUS <> 'X' AND B.DISTRIB_LN_STATUS <> 'C' GROUP BY A.BUSINESS_UNIT, A.REQ_ID, A.CURRENCY_CD |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | Character(5) | VARCHAR2(5) NOT NULL | Business Unit | |
2 | Character(10) | VARCHAR2(10) NOT NULL | Requisition ID | |
3 | VAT_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Specifies the amount of VAT associated with a transaction such as an invoice or a purchase order. In PeopleSoft Receivables this field is populated when the VAT declaration point is set to Invoice. |
4 | MERCHANDISE_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Merchandise Amt F_KDHIL_R87H8 062804 MLM: Added new Line Amount Received Label |
5 | TOTAL_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Total Amount |
6 | CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Currency Code |