ERP 2.50:Developers Guide/Database Model/org.openbravo.model.common.enterprise/C AcctSchema Table DocType
Contents |
C_AcctSchema_Table_DocType
- Name:AcctSchemaTableDocType
- Classname:AcctSchemaTableDocType
This table contains the following columns:
Name | Nullable | Data Type | Description |
C_Acctschema_Table_Doctype_ID | N | VARCHAR2(32) | null |
C_Acctschema_Table_ID | N | VARCHAR2(32) | Acctschema table |
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 |
AllowNegative | Y | CHAR(1) | Allow negative entries in credit and debit |
Docbasetype | N | VARCHAR2(60) | A classification of document types that are shown and processed in the same window. |
AD_Createfact_Template_ID | Y | VARCHAR2(32) | Accounting Template |
Other Info
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')
Indexes
These are the indexes for this table (for each index there is a list of all the columns included within it):
Unique
- C_ACCTSCHEMA_TABLE_DOCTYPE_KEY
Columns
C_AcctSchema_Table_DocType_ID
- Physical column name: C_Acctschema_Table_Doctype_ID
- Property Name: id
- Reference: 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 buisiness object (is Parent)
Foreign key column to C_Acctschema_Table table, (column: C_Acctschema_Table_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
- Default value: @AD_ORG_ID@
Foreign key column to AD_Org table, (column: AD_Org_ID)
Validation Rule AD_Org Security validation: Organizations of the Client with user acces rights. 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'))
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: @#Date@
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: @#Date@
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
Allow negative
Allow negative entries in credit and debit
- Physical column name: AllowNegative
- Property Name: allowNegative
- Reference: YesNo
- This column is part of the table's identifier
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
- This column is part of the table's identifier
Validation Rule C_AcctSchema_Table DocBaseType: Doc base type of the selected document. 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:
- 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)
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)
Validation Rule AD_Table Acctschema table: null. With the following code:
AD_CreateFact_Template.AD_Table_ID=@AD_Table_ID@