ERP/3.0/Developers Guide/Database Model/org.openbravo.model.common.enterprise/C AcctSchema Table DocType
Contents |
C_AcctSchema_Table_DocType
- Name:C_AcctSchema_Table_DocType
- Classname:AcctSchemaTableDocType
This table contains the following columns:
Name | Nullable | Data Type | Description
|
AD_Createfact_Template_ID | Yes | VARCHAR (32) | Accounting Template |
C_Acctschema_Table_ID | No | VARCHAR (32) | Table which has been configured to generate accounting in the ledger. |
Isactive | No | CHAR (1) | 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. |
AllowNegative | No | CHAR (1) | Allow negative entries in credit and debit |
C_Acctschema_Table_Doctype_ID | No | VARCHAR (32) | |
AD_Client_ID | No | VARCHAR (32) | A Client is a company or a legal entity. You cannot share data between Clients. |
Createdby | No | VARCHAR (32) | The Created By field indicates the user who created this record. |
Created | No | TIMESTAMP (7) | The Created field indicates the date that this record was created. |
Docbasetype | No | VARCHAR (60) | The Document Base Type identifies the base or starting point for a document. Multiple document types may share a single document base type. |
AD_Org_ID | No | VARCHAR (32) | An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations. |
Updated | No | TIMESTAMP (7) | The Updated field indicates the date that this record was updated. |
Updatedby | No | VARCHAR (32) | The Updated By field indicates the user who updated this record. |
Columns
AD_Createfact_Template_ID
- Physical column name: AD_Createfact_Template_ID
- Property Name: createfactTemplate
- Reference: TableDir
Foreign key column to AD_CreateFact_template table, (column: AD_Createfact_Template_ID)
It has a validation "AD_Table Acctschema table", with the following code
AD_CreateFact_Template.AD_Table_ID=@AD_Table_ID@
Acctschema table
- Physical column name: C_Acctschema_Table_ID
- Property Name: acctschemaTable
- Reference: TableDir
- This column is part of the table's identifier
- This column is a child for a business object (is Parent)
Foreign key column to C_AcctSchema_Table table, (column: C_Acctschema_Table_ID)
Active
- Physical column name: Isactive
- Property Name: active
- Reference: YesNo
- Default value: Y
Allow negative
- Physical column name: AllowNegative
- Property Name: allowNegative
- Reference: YesNo
- This column is part of the table's identifier
C_AcctSchema_Table_DocType_ID
- Physical column name: C_Acctschema_Table_Doctype_ID
- Property Name: id
- Reference: ID
Client
- Physical column name: AD_Client_ID
- Property Name: client
- Reference: TableDir
Foreign key column to AD_Client table, (column: AD_Client_ID)
It has a validation "AD_Client Security validation", with the following code
AD_Client.AD_Client_ID in (@#User_Client@)
Created By
- Physical column name: Createdby
- Property Name: createdBy
- Reference: Table
Foreign key column to AD_User table, (column: AD_User_ID)
Creation Date
- Physical column name: Created
- Property Name: creationDate
- Reference: DateTime
- Default value: SYSDATE
Document Category
- Physical column name: Docbasetype
- Property Name: documentCategory
- Reference: List
- This column is part of the table's identifier
It has a validation "C_AcctSchema_Table DocBaseType", with the following code
Value IN (SELECT DOCBASETYPE FROM C_DOCTYPE, C_ACCTSCHEMA_TABLE WHERE C_DOCTYPE.AD_TABLE_ID = C_ACCTSCHEMA_TABLE.AD_TABLE_ID AND C_ACCTSCHEMA_TABLE.C_ACCTSCHEMA_TABLE_ID = @C_Acctschema_Table_ID@)
List values: C_DocType DocBaseType
The allowed values for this list are:
- 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)
- MMP (Material Production)
- MXI (Match Invoice)
- MXP (Match PO)
- PJI (Project Issue)
- STT (Settlement): Settlement of debt-payments
- STM (Settlement manual)
- AMZ (Amortization)
- DPM (Debt Payment Management)
- BSF (Bank Statement File)
- PPR (Payment proposal)
- MIC (Material Internal Consumption)
- CAD (Cost Adjustment)
- LDC (Landed Cost)
- FAT (Financial Account Transaction)
- ARRP (AR Receivable Proposal)
- REC (Reconciliation): Reconciliation
- ARI_RM (AR Return Material Invoice)
- DDB (Doubtful Debt): Doubtful Debt
- --- (** New **)
- LCC (Landed Cost Cost)
- APPP (AP Payment Proposal)
- IAU (Inventory Amount Update)
- WRE (Work Requirement): Work Requirement
- 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)
Organization
- Physical column name: AD_Org_ID
- Property Name: organization
- Reference: TableDir
Foreign key column to AD_Org table, (column: AD_Org_ID)
It has a validation "AD_Org Security validation", with the following code
(@AD_Client_ID@='0' AND AD_Org.AD_Org_ID='0') OR (@AD_Client_ID@!='0' AND ((AD_Org.AD_Client_ID IN (@#User_Client@) AND AD_Org.AD_Org_ID IN (@#User_Org@)) OR AD_Org.AD_Org_ID='0' AND AD_Org.IsSummary='N'))
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)
Other Info
Indices
These are the indices for this table (for each index there is a list of all the columns included within it):
- C_ACCSCHTBLDOCTP_ACCSCHTBL_IDX Not Unique. Columns:
- C_ACCTSCHEMA_TABLE_ID
Check Constraints
These are the check constraints for this table:
- C_ACCTSCH_TA_DO_ISACTIVE_CHECK: ISACTIVE IN ('Y', 'N')
- C_ACCTSCH_TA_DO_NEGATIVE_CHECK: ALLOWNEGATIVE IN ('Y', 'N')