DUN_COMPARE_VW(SQL View) |
Index Back |
---|---|
Current vs. Original DunningCompares current item balances for a customer to the item balances on the statement. Payment Plan Feature: Added Payment Plan ID field. |
SELECT A.CRSPD_SETID , A.CRSPD_CUST_ID , A.DUN_ID_NUM , A.BAL_CURRENCY , A.ADDRESS_SEQ_NUM , A.BUSINESS_UNIT , A.CUST_ID , A.ITEM , A.ITEM_LINE , A.ENTRY_TYPE , A.ENTRY_REASON , A.BAL_AMT , A.DSP_CUR_CD_WSH , A.BAL_AMT_LAST , B.ENTRY_TYPE , B.ENTRY_REASON , %Round(%DECMULT(%DECDIV(B.BAL_AMT,A.RATE_DIV),A.RATE_MULT) ,2) , B.BAL_AMT , B.FC_AMT + B.OC_ADMIN_AMT + B.OC_PNLTY_AMT , A.DELETE_ITEM , B.CURRENCY_CD , B.PAYMENT_PLAN FROM PS_DUN_CUST_DTL A , PS_ITEM B WHERE A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.CUST_ID = B.CUST_ID AND A.ITEM = B.ITEM AND A.ITEM_LINE = B.ITEM_LINE AND A.DELETE_ITEM = 'N' |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | CRSPD_SETID | Character(5) | VARCHAR2(5) NOT NULL | SetID |
2 | CRSPD_CUST_ID | Character(15) | VARCHAR2(15) NOT NULL | Correspondence Customer |
3 | DUN_ID_NUM | Number(8,0) | INTEGER NOT NULL | Dunning Number |
4 | BAL_CURRENCY | Character(3) | VARCHAR2(3) NOT NULL | Currency Code - Bal Amount |
5 | ADDRESS_SEQ_NUM | Number(5,0) | INTEGER NOT NULL | Address Sequence Number |
6 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
7 | 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. |
8 | 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. |
9 | ITEM_LINE | Number(6,0) | INTEGER NOT NULL | Item Line |
10 | ORIG_ENTRY_TYPE | Character(5) | VARCHAR2(5) NOT NULL | Original Entry Type |
11 | ORIG_ENTRY_REASON | Character(5) | VARCHAR2(5) NOT NULL | Original Entry Reason |
12 | ORIG_BAL_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Original Balance Amount |
13 | DSP_CUR_CD_WSH | Character(3) | VARCHAR2(3) NOT NULL |
Worksheet Disp. Currency Code
Default Value: BUS_UNIT_OPT_AR.DSP_CUR_CD_WSH Prompt Table:
CURRENCY_CD_TBL
|
14 | BAL_AMT_LAST | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Display Letter Amount |
15 | 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. |
16 | ENTRY_REASON | Character(5) | VARCHAR2(5) NOT NULL | "Specifies an entry reason that further qualifies the entry type associated with a pending item. For example an entry reason for a credit memo might be ""Pricing Error"" or ""Shipping Error""." |
17 | BAL_AMT_BASE | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Balance - Base Currency |
18 | BAL_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Item Balance |
19 | FC_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Specifies the amount of a finance charge on an overdue receivables item. This amount is generated by the Finance Charge SQR. |
20 | DELETE_ITEM | Character(1) | VARCHAR2(1) NOT NULL |
Delete an item from dunning letter preview. Used as a push button.
N=Not Deleted on Letter Y=Delete Item on Letter |
21 | CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Currency Code |
22 | PAYMENT_PLAN | Character(15) | VARCHAR2(15) NOT NULL | Payment Plan |