ITEM_GST_V

(SQL View)
Index Back

View for item attachments

View for item attachments from item maintenance component

SELECT DISTINCT A.GROUP_BU , A.GROUP_ID , A.BUSINESS_UNIT , A.CUST_ID , A.ITEM , A.ITEM_LINE , A.GROUP_SEQ_NUM , A.ORDER_NO , A.ENTRY_AMT , %Round(SUM(D.MONETARY_AMOUNT),0) , A.CURRENCY_CD FROM PS_PENDING_ITEM A , PS_ITEM B , PS_PENDING_DST D WHERE A.GROUP_BU = D.GROUP_BU AND A.GROUP_ID = D.GROUP_ID AND A.BUSINESS_UNIT = B. BUSINESS_UNIT AND A.BUSINESS_UNIT = D.BUSINESS_UNIT AND B.BUSINESS_UNIT = D.BUSINESS_UNIT AND A.CUST_ID = B.CUST_ID AND A.CUST_ID = D.CUST_ID AND B.CUST_ID = D.CUST_ID AND A.ITEM = B.ITEM AND A.ITEM = D.ITEM AND B.ITEM = D.ITEM AND A.ITEM_LINE = B.ITEM_LINE AND A.ITEM_LINE = D.ITEM_LINE AND B.ITEM_LINE = D.ITEM_LINE AND A.GROUP_SEQ_NUM = D.GROUP_SEQ_NUM AND D.PRIMARY_LEDGER = 'Y' AND D.SYSTEM_DEFINED IN('19','20','21') AND EXISTS( SELECT 'X' FROM PS_PAYMNT_ITEM_GST G WHERE A.GROUP_BU = G.DEPOSIT_BU AND D.GROUP_BU = G.DEPOSIT_BU AND A.GROUP_ID = G.GROUP_ID AND D.GROUP_ID = G.GROUP_ID AND A.BUSINESS_UNIT = G.BUSINESS_UNIT AND B.BUSINESS_UNIT = G.BUSINESS_UNIT AND D.BUSINESS_UNIT = G.BUSINESS_UNIT AND A.CUST_ID = G.CUST_ID AND B.CUST_ID = G.CUST_ID AND D.CUST_ID = G.CUST_ID AND A.ITEM = G.ITEM AND B.ITEM = G.ITEM AND D.ITEM = G.ITEM AND A.ITEM_LINE = G.ITEM_LINE AND B.ITEM_LINE = G.ITEM_LINE AND D.ITEM_LINE = G.ITEM_LINE AND A.GROUP_SEQ_NUM = G.AR_SEQ_NUM AND D.GROUP_SEQ_NUM = G.AR_SEQ_NUM AND A.ORDER_NO = G.ORDER_NO) GROUP BY A.GROUP_BU, A.GROUP_ID, A.BUSINESS_UNIT , A.CUST_ID , A.ITEM , A.ITEM_LINE, A.GROUP_SEQ_NUM, A.ENTRY_AMT, A.ORDER_NO, A.CURRENCY_CD

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 GROUP_BU Character(5) VARCHAR2(5) NOT NULL Represents the high level grouping of multiple general ledger business units.
2 GROUP_ID Character(15) VARCHAR2(15) NOT NULL Uniquely identifies a collection of pending items that are to be posted to accounts receivable. The identifier is manually entered or automatically generated by the system.
3 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
4 CUST_ID Character(15) VARCHAR2(15) NOT NULL Uniquely identifies an organizational entity that purchases goods or services from the enterprise. Represents the sold-to customer which is the customer organization that places orders. The CUST_ID may or may not be the same as the identifiers for the bill-to and ship-to locations.
5 ITEM Character(30) VARCHAR2(30) NOT NULL Uniquely identifies an invoice credit memo or debit memo. The item ID is also called the invoice number.
6 ITEM_LINE Number(6,0) INTEGER NOT NULL Item Line
7 GROUP_SEQ_NUM Number(6,0) INTEGER NOT NULL Specifies the system-assigned sequence number of a pending item within a group. A group is a postable entity that may be entered online or created by the system. In either case the group sequence number is automatically generated.
8 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
9 ENTRY_AMT Signed Number(28,3) DECIMAL(26,3) NOT NULL Represents the monetary amount of a pending item transaction such as invoice or credit memo.
10 MONETARY_AMOUNT Signed Number(28,3) DECIMAL(26,3) NOT NULL Specifies the monetary amount of a debit or credit in the business unit base currency. Debit entries are positive and credit entries are negative. This amount is only zero if associated with a statistical account.
11 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code