STMT_COMPARE_VW(SQL View) |
Index Back |
---|---|
Current vs. Original StatementCompares current item balances for a customer to the item balances on the statement. |
SELECT a.crspd_setid , a.crspd_cust_id , a.st_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 , b.entry_type , b.entry_reason , b.bal_amt , ' ' , a.draft_flg , a.display_bal_amt , %DecMult((%DECDIV(B.BAL_AMT,A.RATE_DIV)),A.RATE_MULT) , c.display_currency FROM ps_stmt_cust_dtl a , PS_ITEM b , ps_stmt_cust C 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.CRSPD_SETID = C.CRSPD_SETID AND A.CRSPD_CUST_ID = C.CRSPD_CUST_ID AND A.ST_ID_NUM = C.ST_ID_NUM |
# | 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 | ST_ID_NUM | Number(8,0) | INTEGER NOT NULL | Statement 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 | 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. |
14 | 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""." |
15 | BAL_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Item Balance |
16 | ITEM_ACT_PB | Character(1) | VARCHAR2(1) NOT NULL | View Item Activity |
17 | DRAFT_FLG | Character(1) | VARCHAR2(1) NOT NULL |
Draft Flag
Default Value: N |
18 | DISPLAY_BAL_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Display Balance |
19 | DISPLAY_BALANCE | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | [Display Currency] |
20 | DISPLAY_CURRENCY | Character(3) | VARCHAR2(3) NOT NULL | Display Currency |