AR_ONACT_PY_VW

(SQL View)
Index Back

On-accounts Payments Tile

On-accounts Payments Tile

SELECT DISTINCT CASE WHEN A.ITEM_STATUS = 'O' THEN A.BUSINESS_UNIT ELSE B.BUSINESS_UNIT END ,CASE WHEN A.ITEM_STATUS = 'O' THEN A.CUST_ID ELSE B.CUST_ID END ,A.ITEM ,A.ITEM_LINE ,A.COLLECTOR ,A.SALES_PERSON ,A.CR_ANALYST ,A.AR_SPECIALIST ,A.BROKER_ID ,A.ENTRY_TYPE ,A.BAL_CURRENCY ,CASE WHEN A.ITEM_STATUS = 'O' THEN %Abs(A.BAL_AMT) ELSE %Abs(B.BAL_AMT) END FROM PS_ITEM A , PS_ITEM B WHERE A.ENTRY_USE_ID IN ('WS-04','WS-05') AND A.ITEM_STATUS IN ('O','C') AND A.ITEM = B.ITEM AND A.ITEM_LINE = B.ITEM_LINE AND %Abs(B.BAL_AMT) <> 0

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit

Prompt Table: SP_BUARDS_NONVW

2 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.
3 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.
4 ITEM_LINE Number(6,0) INTEGER NOT NULL Item Line
5 COLLECTOR Character(8) VARCHAR2(8) NOT NULL Specifies the personnel code for the person who works with a customer to collect overdue payments.
6 SALES_PERSON Character(8) VARCHAR2(8) NOT NULL Specifies the personnel code for the person who works with a customer as a sales representative. This field is required for a customer that functions as a bill-to customer.
7 CR_ANALYST Character(8) VARCHAR2(8) NOT NULL Specifies the personnel code for the person who works with a customer to establish credit limits and payment terms. This field is required for a bill-to customer.
8 AR_SPECIALIST Character(8) VARCHAR2(8) NOT NULL Accounts Recievable Specialist - person responsible for an action on an item.
9 BROKER_ID Character(15) VARCHAR2(15) NOT NULL Broker ID
10 ENTRY_TYPE Character(5) VARCHAR2(5) NOT NULL Specifies the type of transaction associated with a pending item. The entry type remains with the item after it is posted and affects many areas of Receivables processing. Some examples of entry types are Invoices Credit Memo Prepayment and Deduction.
11 BAL_CURRENCY Character(3) VARCHAR2(3) NOT NULL Currency Code - Bal Amount
12 BAL_AMT Signed Number(28,3) DECIMAL(26,3) NOT NULL Item Balance