BNK_BTB_GAR_VW

(SQL View)
Index Back

AR items posted to GL


SELECT B.DEPOSIT_BU , B.DEPOSIT_ID , B.DRAFT_BU , B.DRAFT_ID , B.DD_BU , B.DD_ID , A.FISCAL_YEAR , A.ACCOUNTING_PERIOD , A.BUSINESS_UNIT_GL , A.LEDGER , A.ACCOUNT , A.JOURNAL_ID , A.JOURNAL_DATE , A.MONETARY_AMOUNT , A.CURRENCY_CD , A.FOREIGN_AMOUNT , A.FOREIGN_CURRENCY FROM PS_ITEM_DST A , PS_ITEM_ACTIVITY B WHERE A.PRIMARY_LEDGER = 'Y' AND B.BUSINESS_UNIT = A.BUSINESS_UNIT AND B.CUST_ID = A.CUST_ID AND B.ITEM = A.ITEM AND B.ITEM_LINE = A.ITEM_LINE AND B.ITEM_SEQ_NUM = A.ITEM_SEQ_NUM AND EXISTS ( SELECT 'X' FROM PS_BANK_ACCT_CHRT WHERE SETID = B.BANK_SETID AND BANK_CD = B.BANK_CD AND BANK_CD_CPTY = B.BANK_CD AND BANK_ACCT_KEY = B.BANK_ACCT_KEY AND COUNTERPARTY = B.BANK_CD AND BANK_ACCT_LED_TYPE IN ('A', 'C', 'H') AND ACCOUNT = A.ACCOUNT ) AND EXISTS ( SELECT 'X' FROM PS_JRNL_HEADER WHERE BUSINESS_UNIT = A.BUSINESS_UNIT_GL AND JOURNAL_ID = A.JOURNAL_ID AND JOURNAL_DATE = A.JOURNAL_DATE AND UNPOST_SEQ = 0 AND LEDGER_GROUP = A.LEDGER_GROUP AND JRNL_HDR_STATUS = 'P' )

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 DEPOSIT_BU Character(5) VARCHAR2(5) NOT NULL Identifies the business unit to which a deposit is posted.
2 DEPOSIT_ID Character(15) VARCHAR2(15) NOT NULL Uniquely identifies a deposit of customer payments. The deposit ID can be manually assigned or system-generated.
3 DRAFT_BU Character(5) VARCHAR2(5) NOT NULL Identifies the Receivables business unit associated with a draft. This field is maintained by the Draft Creation process.
4 DRAFT_ID Character(15) VARCHAR2(15) NOT NULL Uniquely identifies a payment draft. The Draft ID is system-generated during the Draft Creation process or manually entered.
5 DD_BU Character(5) VARCHAR2(5) NOT NULL Specifies the business unit to which a direct debit is posted. This field is maintained by the Direct debit generation process.
6 DD_ID Character(15) VARCHAR2(15) NOT NULL Specifies a sequence number assigned to a Direct Debit by the Direct Debit generation process.
7 FISCAL_YEAR Number(4,0) SMALLINT NOT NULL Fiscal Year
8 ACCOUNTING_PERIOD Number(3,0) SMALLINT NOT NULL Identifies a time period to which you post transactions. Typically, an accounting period represents a month, but it can also represent a week, a day, or any user-defined interval. An accounting period has a beginning date and an ending date, and is defined in the calendar table.
9 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
10 LEDGER Character(10) VARCHAR2(10) NOT NULL Ledger
11 ACCOUNT Character(10) VARCHAR2(10) NOT NULL Account
12 JOURNAL_ID Character(10) VARCHAR2(10) NOT NULL Identifies a journal entry, consisting of a header and one or more lines. The Journal ID itself does not have to be unique, but together with the journal business unit and journal date, it forms a unique journal identifier.
13 JOURNAL_DATE Date(10) DATE Specifies the date the journal was created.
14 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.
15 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code
16 FOREIGN_AMOUNT Signed Number(28,3) DECIMAL(26,3) NOT NULL Specifies the monetary amount of a debit or credit (accounting entry line) in the entry currency of the item. The sum of FOREIGN_AMOUNT values on AR lines should equal the ENTRY_AMT on the pending item.
17 FOREIGN_CURRENCY Character(3) VARCHAR2(3) NOT NULL Foreign Currency Code