ITEM_NRA_PMT_VW(SQL View) |
Index Back |
---|---|
Item and Type View |
SELECT a.business_unit ,a.common_id ,a.common_id ,a.item_nbr ,a.account_nbr ,a.account_term ,a.acad_year ,a.item_type ,a.item_amt ,a.applied_amt ,a.item_balance ,a.payment_id_nbr ,b.item_type_cd ,a.item_term ,a.nra_taxation_swtch ,a.calendar_year ,a.account_type_sf ,b.nra_credit_tax_flg ,b.nra_debit_tax_flg ,a.tax_adj_wholdings ,a.tax_adj_wholdings ,a.currency_cd FROM ps_item_sf a ,PS_ITEM_TYPE_TBL b WHERE a.item_type = b.item_type AND a.sa_id_type = 'P' AND a.nra_taxation_swtch = 'Y' AND a.item_balance < 0 AND b.nra_credit_tax_flg = 'Y' AND b.effdt=( SELECT MAX(effdt) FROM PS_ITEM_TYPE_TBL c WHERE b.setid=c.setid AND b.item_type=c.item_type AND c.effdt <= %CurrentDateIn AND c.eff_status = 'A' ) AND b.setid=( SELECT setid FROM ps_set_cntrl_rec d WHERE d.recname='ITEM_TYPE_TBL' AND d.setcntrlvalue=( SELECT e.institution FROM ps_bus_unit_tbl_sf e WHERE e.business_unit=a.business_unit)) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL |
Business Unit
Default Value: OPR_DEF_TBL_CS.BUSINESS_UNIT Prompt Table: SP_BU_SF_NONVW |
2 | COMMON_ID | Character(11) | VARCHAR2(11) NOT NULL | Common ID to store Personal ID / Ext Org ID value |
3 | EMPLID | Character(11) | VARCHAR2(11) NOT NULL |
Employee ID
Prompt Table: PEOPLE_SRCH |
4 | ITEM_NBR | Character(15) | VARCHAR2(15) NOT NULL | Item Nbr |
5 | ACCOUNT_NBR | Character(10) | VARCHAR2(10) NOT NULL |
Account Nbr
Prompt Table: ACCOUNT_SF_O |
6 | ACCOUNT_TERM | Character(4) | VARCHAR2(4) NOT NULL | Account Term |
7 | ACAD_YEAR | Character(4) | VARCHAR2(4) NOT NULL | Academic Year |
8 | ITEM_TYPE | Character(12) | VARCHAR2(12) NOT NULL |
Item Type
Prompt Table: ITEM_TYPE_TBL |
9 | ITEM_AMT | Signed Number(18,2) | DECIMAL(16,2) NOT NULL | Item Amount |
10 | APPLIED_AMT | Signed Number(18,2) | DECIMAL(16,2) NOT NULL | Applied Amount |
11 | ITEM_BALANCE | Signed Number(18,2) | DECIMAL(16,2) NOT NULL | Item Balance |
12 | PAYMENT_ID_NBR | Number(12,0) | DECIMAL(12) NOT NULL | Payment ID Nbr |
13 | ITEM_TYPE_CD | Character(1) | VARCHAR2(1) NOT NULL |
Item Type Code
A=Application Fee B=Billing Only C=Charge D=Deposit F=Financial Aid G=GL Interface Only H=Withholding I=Interest L=Pre-Paid Tuition P=Payment R=Refund T=Transfers V=Contributor Relations W=Waiver X=Write-off Z=Pay Plan Credit |
14 | ITEM_TERM | Character(4) | VARCHAR2(4) NOT NULL | Item Term |
15 | NRA_TAXATION_SWTCH | Character(1) | VARCHAR2(1) NOT NULL |
NRA Taxation Option
C=NRA Tax W/Current Info N=No NRA Taxes |
16 | CALENDAR_YEAR | Number(4,0) | SMALLINT NOT NULL | Calendar Year |
17 | ACCOUNT_TYPE_SF | Character(3) | VARCHAR2(3) NOT NULL | Account Type |
18 | NRA_CREDIT_TAX_FLG | Character(1) | VARCHAR2(1) NOT NULL | NRA Tax Payment Flag |
19 | NRA_DEBIT_TAX_FLG | Character(1) | VARCHAR2(1) NOT NULL | NRA Tax Type |
20 | TAX_ADJ_WHOLDINGS | Signed Number(12,2) | DECIMAL(10,2) NOT NULL | Gross Taxable Payments YTD |
21 | ITEM_OFFSET_AMT | Signed Number(12,2) | DECIMAL(10,2) NOT NULL | Gross Taxable Payments YTD |
22 | CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Currency Code |