CAP_LSE_CAP_VW(SQL View) |
Index Back |
---|---|
Lease Payments by CAP Num |
SELECT b.Business_Unit , b.CAP_Num , b.Asset_ID , b.Descr , b.Asset_Status , MAX(a.pymnt_dt) , SUM(a.Interest_Expense) , SUM(a.obligation_reduce) , b.Currency_cd FROM ps_Lease_Sched a , ps_Asset b , PS_BUS_UNIT_TBL_AM c , ps_Installation_AM d , ps_lease e WHERE a.Business_Unit = b.Business_Unit AND a.Asset_ID = b.Asset_ID AND c.CAP_Book = c.Lease_Book AND c.Business_Unit = b.Business_Unit AND a.pymnt_dt <= %CurrentDateIn AND e.Business_Unit = a.business_unit AND e.Asset_Id = a.Asset_id AND e.lease_type = 'C' GROUP BY b.Business_Unit, b.CAP_Num, b.Asset_ID, b.Descr, b.Asset_Status, b.Currency_cd |
# | 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_FS.BUSINESS_UNIT |
2 | CAP_NUM | Character(15) | VARCHAR2(15) NOT NULL | Capital Acquisition Plan # |
3 | ASSET_ID | Character(12) | VARCHAR2(12) NOT NULL | Asset Identification |
4 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |
5 | ASSET_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
Asset Status
A=Received (Not in Service) B=Budgeted C=Commitment D=Disposed I=In Service M=Suspended R=Requisitioned T=Transferred W=Work In Progress |
6 | PYMNT_DT | Date(10) | DATE | Payment Date |
7 | INTEREST_EXPENSE | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Interest Expense |
8 | OBLIGATION_REDUCE | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Obligation Reduction |
9 | CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Currency Code |