CNTRCT_INQ_AP1(SQL View) |
Index Back |
|---|---|
Contract Inquiry AP |
| SELECT a.setid , b.cntrct_id , b.voucher_id , a.descr , b.gross_amt , b.post_status_ap , b.invoice_id , b.invoice_dt , b.accounting_dt , b.business_unit , a.currency_cd FROM ps_cntrct_hdr a , PS_VOUCHER b WHERE a.version_nbr = ( SELECT MAX(a2.version_nbr) FROM ps_cntrct_hdr A2 WHERE a2.setid = a.setid AND a2.cntrct_id = a.cntrct_id) AND a.vendor_setid = b.vendor_setid AND a.business_unit_ap = b.business_unit AND a.cntrct_id = b.cntrct_id AND b.entry_status <> 'X' |
| # | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
|---|---|---|---|---|
| 1 | Character(5) | VARCHAR2(5) NOT NULL | SetID | |
| 2 | Character(25) | VARCHAR2(25) NOT NULL | Buying Agreement ID | |
| 3 | Character(8) | VARCHAR2(8) NOT NULL | Voucher ID | |
| 4 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |
| 5 | GROSS_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Gross Invoice Amount |
| 6 | POST_STATUS_AP | Character(1) | VARCHAR2(1) NOT NULL |
Post Status
N=Payment Not Applied P=Posted U=Unposted |
| 7 | INVOICE_ID | Character(30) | VARCHAR2(30) NOT NULL | Invoice Number |
| 8 | INVOICE_DT | Date(10) | DATE | Invoice Date |
| 9 | ACCOUNTING_DT | Date(10) | DATE | The accounting entry construction date for a given transaction (a generic field that crosses multiple |
| 10 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
| 11 | CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Currency Code |