ERP 2.50:Developers Guide/Database Model/org.openbravo.model.financialmgmt.calendar/C PeriodControl Log
C_PeriodControl_Log
It stores a log about the execution of the open or close period control process.
- Name:PeriodControlLog
- Classname:PeriodControlLog
This table contains the following columns:
Name | Nullable | Data Type | Description |
C_Periodcontrol_Log_ID | N | VARCHAR2(32) | Record of a Period Control |
AD_Client_ID | N | VARCHAR2(32) | Client for this installation. |
AD_Org_ID | N | VARCHAR2(32) | Organizational entity within client |
Isactive | N | CHAR(1) | A flag indicating whether this record is available for use or de-activated. |
Created | N | DATE | The date that this record is completed. |
Createdby | N | VARCHAR2(32) | User who created this records |
Updated | N | DATE | x not implemented |
Updatedby | N | VARCHAR2(32) | User who updated this records |
Description | Y | VARCHAR2(255) | A space to write additional related information. |
Processing | N | CHAR(1) | A request to process the respective document or task. |
Processed | N | CHAR(1) | A confirmation that the associated documents or requests are processed. |
C_Calendar_ID | N | VARCHAR2(32) | A table showing the days of the week for each month of the year. |
IsRecursive | N | CHAR(1) | If it is selected, the process will also open or close the documents of all of the organizations that depend on the selected organization. |
C_Year_ID | N | VARCHAR2(32) | Calendar Year |
Periodno | N | VARCHAR2(32) | Until Period Number |
Docbasetype | Y | VARCHAR2(60) | A classification of document types that are shown and processed in the same window. |
Periodaction | N | VARCHAR2(60) | Action taken for this period |
Other Info
Check constraints
These are the check constraints for this table:
- C_PERIODCTRLLOG_ISACTIVE_CHECK: ISACTIVE IN ('Y', 'N')
- C_PERIODCTRLLOG_PROCESSED_CHK: PROCESSED IN ('Y', 'N')
- C_PERIODCTRLLOG_PROCESSING_CHK: PROCESSING IN ('Y', 'N')
- C_PERIODCTRLLOG_RECURSIVE_CHK: ISRECURSIVE IN ('Y', 'N')
Indexes
These are the indexes for this table (for each index there is a list of all the columns included within it):
Unique
- C_PERIODCONTROL_LOG_KEY
Columns
Period Control record
Log of the Open/Close Period Control process
- Physical column name: C_Periodcontrol_Log_ID
- Property Name: id
- Reference: ID
Client
- Physical column name: AD_Client_ID
- Property Name: client
- Reference: TableDir
- Default value: @AD_CLIENT_ID@
Foreign key column to AD_Client table, (column: AD_Client_ID)
Validation Rule AD_Client Security validation: Clients with user access rights. With the following code:
AD_Client.AD_Client_ID IN (@#User_Client@)
Organization
- Physical column name: AD_Org_ID
- Property Name: organization
- Reference: TableDir
Foreign key column to AD_Org table, (column: AD_Org_ID)
Validation Rule AD_Org IsPeriodControlAllowed: Display the organizations which are allowed to open/close period control. With the following code:
ISPERIODCONTROLALLOWED='Y' AND IsReady='Y'
Callout: SE_PeriodNo
This element is linked to a callout.
It is implemented by org.openbravo.erpCommon.ad_callouts.SE_PeriodNo Java class.
Active
There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reporting. There are two reasons for de-activating and not deleting records:
(1) The system requires the record for auditing purposes.
(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are existing invoices for it. By de-activating the Business Partner you prevent it from being used in future transactions.
- Physical column name: Isactive
- Property Name: active
- Reference: YesNo
- Default value: Y
Creation Date
The Created field indicates the date that this record was created.
- Physical column name: Created
- Property Name: creationDate
- Reference: DateTime
- Default value: SYSDATE
Created By
- Physical column name: Createdby
- Property Name: createdBy
- Reference: Table
Foreign key column to AD_User table, (column: AD_User_ID)
Reference Table AD_User
Updated
The Updated field indicates the date that this record was updated.
- Physical column name: Updated
- Property Name: updated
- Reference: DateTime
- Default value: SYSDATE
Updated By
- Physical column name: Updatedby
- Property Name: updatedBy
- Reference: Table
Foreign key column to AD_User table, (column: AD_User_ID)
Reference Table AD_User
Description
A description is limited to 255 characters.
- Physical column name: Description
- Property Name: description
- Reference: String
Process Now
When this field is set as 'Y' a process is being performed on this record.
- Physical column name: Processing
- Property Name: processNow
- Reference: YesNo
Processed
The Processed checkbox indicates that a document has been processed.
- Physical column name: Processed
- Property Name: processed
- Reference: Button
Calendar
- Physical column name: C_Calendar_ID
- Property Name: calendar
- Reference: TableDir
Foreign key column to C_Calendar table, (column: C_Calendar_ID)
Cascade
If it is selected, the process will also open or close the documents of all of the organizations that depend on the selected organization.
- Physical column name: IsRecursive
- Property Name: cascade
- Reference: YesNo
Year
- Physical column name: C_Year_ID
- Property Name: year
- Reference: TableDir
- This column is part of the table's identifier
Foreign key column to C_Year table, (column: C_Year_ID)
Validation Rule C_Calendar and C_Year of an organization: It ensures the calendar combobox shows always the calendar of the selected organization. With the following code:
C_YEAR.C_CALENDAR_ID IN (SELECT DISTINCT(C_CALENDAR_ID) FROM AD_ORG WHERE AD_ORG_ID=AD_ORG_GETCALENDAROWNER(@AD_ORG_ID@))
Callout: SE_PeriodNo
This element is linked to a callout.
It is implemented by org.openbravo.erpCommon.ad_callouts.SE_PeriodNo Java class.
Until Period.
The process will open or close all the documents of this period and the periods before this one for the selected year.
- Physical column name: Periodno
- Property Name: periodNo
- Reference: Table
- This column is part of the table's identifier
Foreign key column to C_Period table, (column: C_Period_ID)
Reference Table PeriodNo With the following where clause:
C_Year_ID=@C_Year_ID@
Document Category
The Document Base Type identifies the base or starting point for a document. Multiple document types may share a single document base type.
- Physical column name: Docbasetype
- Property Name: documentCategory
- Reference: List
List values: C_DocType DocBaseType
The allowed values for this list are:
- MMP (Material Production)
- MXI (Match Invoice)
- MXP (Match PO)
- PJI (Project Issue)
- GLJ (GL Journal)
- GLD (GL Document)
- API (AP Invoice)
- APP (AP Payment)
- ARI (AR Invoice)
- ARR (AR Receipt)
- SOO (Sales Order)
- ARF (AR Pro Forma Invoice)
- MMS (Material Delivery)
- MMR (Material Receipt)
- MMM (Material Movement)
- POO (Purchase Order)
- POR (Purchase Requisition)
- MMI (Material Physical Inventory)
- APC (AP Credit Memo)
- ARC (AR Credit Memo)
- CMB (Bank Statement)
- CMC (Cash Journal)
- CMA (Payment Allocation)
- STT (Settlement): Settlement of debt-payments
- STM (Settlement manual)
- AMZ (Amortization)
- DPM (Debt Payment Management)
- BSF (Bank Statement File)
- PPR (Payment proposal)
- FAT (Financial Account Transaction)
- ARRP (AR Receivable Proposal)
- REC (Reconciliation): Reconciliation
- --- (** New **)
- APPP (AP Payment Proposal)
Period Action
The Period Action indicates the action to be taken for this period. For example 'Close Period' or 'Open Period'.
- Physical column name: Periodaction
- Property Name: periodAction
- Reference: List
- This column is part of the table's identifier
Validation Rule Allowed PeriodActions: Display only the allowed PeriodActions. With the following code:
Value<>'N'
List values: C_PeriodControl Action
The allowed values for this list are:
- C (Close Period): Soft close - can be re-opened
- N (<No Action>)
- O (Open Period)
- P (Permanently Close Period)