CS_PO_DISTSUMVW(SQL View) |
Index Back |
---|
SELECT A.BUSINESS_UNIT , A.PO_ID , A.LINE_NBR , B.SCHED_NBR , SUM(C.FREIGHT_AMT) , SUM(C.MERCHANDISE_AMT) , SUM(C.MISC_AMT) , SUM(C.SALETX_AMT) , SUM(C.USETAX_AMT) , SUM(C.VAT_AMT) FROM PS_PO_LINE A , PS_PO_LINE_SHIP B , PS_PO_LINE_DISTRIB C WHERE A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.PO_ID=B.PO_ID AND A.LINE_NBR=B.LINE_NBR AND C.BUSINESS_UNIT = B.BUSINESS_UNIT AND C.PO_ID = B.PO_ID AND C.LINE_NBR = B.LINE_NBR AND C.SCHED_NBR = B.SCHED_NBR GROUP BY A.BUSINESS_UNIT, A.PO_ID, A.LINE_NBR, B.SCHED_NBR |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
2 | PO_ID | Character(10) | VARCHAR2(10) NOT NULL | Purchase Order |
3 | LINE_NBR | Number(5,0) | INTEGER NOT NULL | Line Number: 11/24/08 - Added TARGET label [PC product] |
4 | SCHED_NBR | Number(3,0) | SMALLINT NOT NULL | Schedule Number |
5 | FREIGHT_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Freight Amount |
6 | MERCHANDISE_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Merchandise Amt F_KDHIL_R87H8 062804 MLM: Added new Line Amount Received Label |
7 | MISC_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Misc. Amount |
8 | SALETX_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Sales Tax Amount |
9 | USETAX_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Amount |
10 | 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. |