AP_PREPAY_HISTORY_ALL
AP_PREPAY_HISTORY_ALL countains the history of a prepayment which includes its related prepayment applications, prepayment unapplications and prepayment application adjustments. A row is created in APPH when the Prepayment Applied, Prepayment Unapplied or Prepayment Adjusted accounting events are captured.
Details
-
Schema: FUSION
-
Object owner: AP
-
Object type: TABLE
-
Tablespace: APPS_TS_TX_DATA
Primary Key
Name | Columns |
---|---|
AP_PREPAY_HISTORY_ALL_PK |
PREPAY_HISTORY_ID |
Columns
Name | Datatype | Length | Precision | Not-null | Comments |
---|---|---|---|---|---|
PREPAY_HISTORY_ID | NUMBER | 18 | Yes | Prepayment History Unique Identifier | |
PREPAY_INVOICE_ID | NUMBER | 18 | Yes | Unique Identifier of the Prepayment | |
PREPAY_LINE_NUM | NUMBER | 18 | Yes | Prepayment line number in the prepayment history. | |
ACCOUNTING_EVENT_ID | NUMBER | 18 | Unique Identifier for the accounting event of the prepayment application, unapplication or adjustment | ||
HISTORICAL_FLAG | VARCHAR2 | 1 | Flag indicates if upgrade created record | ||
INVOICE_ID | NUMBER | 18 | Yes | Unique Identifier of the recipient Invoice | |
INVOICE_ADJUSTMENT_EVENT_ID | NUMBER | 18 | Related adjusted invoice event that resulted in a cascade event | ||
ORG_ID | NUMBER | 18 | Yes | Indicates the identifier of the business unit associated to the row. | |
POSTED_FLAG | VARCHAR2 | 1 | Flag indicates whether the prepayment application, prepayment unapplication, or prepayment adjustment was successfully accounted or not | ||
RELATED_PREPAY_APP_EVENT_ID | NUMBER | 18 | For cascade events, related prepayment application event | ||
TRANSACTION_TYPE | VARCHAR2 | 30 | Yes | Accounting transaction event type. Values can be Prepayment Application, Prepayment Unapplication, or Prepayment Adjustment | |
LAST_UPDATED_BY | VARCHAR2 | 64 | Yes | Who column: indicates the user who last updated the row. | |
LAST_UPDATE_DATE | TIMESTAMP | Yes | Who column: indicates the date and time of the last update of the row. | ||
LAST_UPDATE_LOGIN | VARCHAR2 | 32 | Who column: indicates the session login associated to the user who last updated the row. | ||
CREATED_BY | VARCHAR2 | 64 | Yes | Who column: indicates the user who created the row. | |
CREATION_DATE | TIMESTAMP | Yes | Who column: indicates the date and time of the creation of the row. | ||
PROGRAM_APPLICATION_ID | NUMBER | 18 | Who column: indicates the application identifier of the row. | ||
PROGRAM_ID | NUMBER | 18 | Who column: indicates the identifier of the row. | ||
PROGRAM_UPDATE_DATE | DATE | Who column: indicates the date and time of the creation of the row. | |||
REQUEST_ID | NUMBER | 18 | Enterprise Service Scheduler: indicates the request ID of the job that created or last updated the row. | ||
INVOICE_LINE_NUMBER | NUMBER | Line number of the recipient invoice. | |||
ACCOUNTING_DATE | DATE | Accounting date of the prepayment. | |||
BC_EVENT_ID | NUMBER | 18 | Identifier of Accounting Event raised for Encumbrance accounting | ||
GAIN_LOSS_INDICATOR | VARCHAR2 | 1 | Indicates whether the payment related transaction resulted in gain or loss (G or L) | ||
OBJECT_VERSION_NUMBER | NUMBER | 9 | Yes | Used to implement optimistic locking. This number is incremented every time that the row is updated. The number is compared at the start and end of a transaction to detect whether another session has updated the row since it was queried. | |
JOB_DEFINITION_NAME | VARCHAR2 | 100 | Enterprise Service Scheduler: indicates the name of the job that created or last updated the row. | ||
JOB_DEFINITION_PACKAGE | VARCHAR2 | 900 | Enterprise Service Scheduler: indicates the package name of the job that created or last updated the row. |
Foreign Keys
Table | Foreign Table | Foreign Key Column |
---|---|---|
AP_PREPAY_HISTORY_ALL | ap_invoices_all | INVOICE_ID |
AP_PREPAY_HISTORY_ALL | ap_invoice_lines_all | INVOICE_ID, INVOICE_LINE_NUMBER |
AP_PREPAY_HISTORY_ALL | ap_invoice_lines_all | PREPAY_INVOICE_ID, PREPAY_LINE_NUM |
ap_prepay_app_dists | ap_prepay_history_all | PREPAY_HISTORY_ID |
Indexes
Index | Uniqueness | Tablespace | Columns |
---|---|---|---|
AP_PREPAY_HISTORY_ALL_U1 | Unique | Default | PREPAY_HISTORY_ID |
AP_PREPAY_HISTORY_N1 | Non Unique | Default | ACCOUNTING_EVENT_ID |
AP_PREPAY_HISTORY_N2 | Non Unique | Default | BC_EVENT_ID |
AP_PREPAY_HISTORY_N3 | Non Unique | Default | INVOICE_ID |