OM_FRT_CHRG_VW(SQL View) |
Index Back |
---|
SELECT O.BUSINESS_UNIT , O.ORDER_NO , SUM(CASE WHEN F.FREIGHT_CHARGE_CNV IS NULL THEN 0 ELSE F.FREIGHT_CHARGE_CNV END ) , SUM(CASE WHEN F.FREIGHT_CHARGE_BSE IS NULL THEN 0 ELSE F.FREIGHT_CHARGE_BSE END) , SUM(CASE WHEN F.FREIGHT_TAX_AMT IS NULL THEN 0 ELSE F.FREIGHT_TAX_AMT END) , SUM(CASE WHEN F.FREIGHT_TAX_BASE IS NULL THEN 0 ELSE F.FREIGHT_TAX_BASE END) FROM PS_ORD_HEADER O LEFT OUTER JOIN PS_IN_DELIVERY_ORD F ON O.BUSINESS_UNIT = F.SOURCE_BUS_UNIT AND O.ORDER_NO = F.ORDER_NO AND F.DEMAND_SOURCE = 'OM' AND F.FREIGHT_APP = 'OM' AND F.CHARGE_TYPE = 'F' GROUP BY O.BUSINESS_UNIT , O.ORDER_NO |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
2 | ORDER_NO | Character(10) | VARCHAR2(10) NOT NULL | Identifies a customer order number that appears as a reference on a receivables pending item. Date Initials Issue Description 022701 mv SP2 (F-CJORGENS-3) CSR Desktop |
3 | FREIGHT_CHARGE | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | Freight Charge |
4 | FREIGHT_CHARGE_BSE | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | Freight Charge (base) |
5 | FREIGHT_TAX_AMT | Signed Number(17,2) | DECIMAL(15,2) NOT NULL | Freight Tax Amount |
6 | FREIGHT_TAX_BASE | Signed Number(17,2) | DECIMAL(15,2) NOT NULL | Freight Tax Amount Base |