ERP/3.0/Developers Guide/Database Model/org.openbravo.model.financialmgmt.payment/C Settlement
C_Settlement
- Name:C_Settlement
- Classname:FinancialMgmtSettlement
This table contains the following columns:
Name | Nullable | Data Type | Description
|
User1_ID | Yes | VARCHAR (32) | The user defined element displays the optional elements that have been defined for this account combination. |
User2_ID | Yes | VARCHAR (32) | The user defined element displays the optional elements that have been defined for this account combination. |
DateAcct | Yes | TIMESTAMP (7) | The date this transaction is recorded on in the general ledger. This date also indicates which accounting period within the fiscal year this transaction will be part of. |
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. |
C_Activity_ID | Yes | VARCHAR (32) | Activities indicate tasks that are performed and used to utilize Activity based Costing |
Cancelednotchargeamt | Yes | DECIMAL | Indicates the amount that has been canceled but has generated no charges in the bank account or cash. |
Chargedamt | Yes | DECIMAL | Indicates the total amount of the payments that have been canceled and charged. |
AD_Client_ID | No | VARCHAR (32) | A Client is a company or a legal entity. You cannot share data between Clients. |
CopyFrom | No | CHAR (1) | Copy lines (products) from another document of the same type. |
CreateFrom | Yes | CHAR (1) | A process that allows the user to copy lines (products) from an existing document different from the one being copied into. For example, in case of entering a new Goods Shipment, the user can copy lines (products) from an existing Sales Order or Sales Invoice. |
CreateFile | No | CHAR (1) | Create file |
Generatedamt | Yes | DECIMAL | Indicates the total amount of the payments that have been generated in this settlement. |
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. |
C_Currency_ID | No | VARCHAR (32) | Indicates the currency to be used when processing this document. |
Description | Yes | VARCHAR (255) | A description is limited to 255 characters. |
DocumentNo | No | NVARCHAR (30) | The document number is usually automatically generated by the system and determined by the document type of the document. If the document is not saved, the preliminary number is displayed in "<>". If the document type of your document has no automatic document sequence defined, the field will be empty when creating a new document. This is for documents which usually have an external number (like vendor invoice). If you leave the field empty, the system will generate a document number for you. The document sequence used for this fallback number is defined in the "Document Sequence" window with the name "DocumentNo_<TableName>", where TableName is the actual name of the table inside the database (e.g. C_Order). |
C_DocType_ID | No | VARCHAR (32) | The Document Type determines document sequence and processing rules |
IsGenerated | Yes | CHAR (1) | The Generated checkbox identifies a journal line that was generated from a source document. Lines could also be entered manually or imported. |
SettlementOpen | Yes | CHAR (1) | |
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. |
Posted | No | VARCHAR (60) | An accounting status button that indicates if the transaction has already been posted to the general ledger or not. When doing the accounting manually this button can be used to post or unpost the transaction from the general ledger by hand. |
Processing | Yes | CHAR (1) | When this field is set as 'Y' a process is being performed on this record. |
Processed | No | VARCHAR (60) | The Processed checkbox indicates that a document has been processed. |
C_Project_ID | Yes | VARCHAR (32) | Identifier of a project defined within the Project & Service Management module. |
C_Campaign_ID | Yes | VARCHAR (32) | The Campaign defines a unique marketing program. Projects can be associated with a pre defined Marketing Campaign. You can then report based on a specific Campaign. |
C_Settlement_ID | No | VARCHAR (32) | Termination of a business operation by using its assets to discharge its liabilities. |
Settlementtype | Yes | VARCHAR (60) | Indicates the type of settlement (settlement or manual settlement) |
IsTemplate | Yes | CHAR (1) | Template is checked when the element is used as a template. |
DateTrx | No | TIMESTAMP (7) | The Transaction Date indicates the date of the transaction. |
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
1st Dimension
- Physical column name: User1_ID
- Property Name: stDimension
- Reference: OBUISEL_Selector Reference
Foreign key column to User1 table, (column: User1_ID)
2nd Dimension
- Physical column name: User2_ID
- Property Name: ndDimension
- Reference: OBUISEL_Selector Reference
Foreign key column to User2 table, (column: User2_ID)
Accounting Date
- Physical column name: DateAcct
- Property Name: accountingDate
- Reference: Date
Active
- Physical column name: IsActive
- Property Name: active
- Reference: YesNo
- Default value: Y
Activity
- Physical column name: C_Activity_ID
- Property Name: activity
- Reference: TableDir
Foreign key column to C_Activity table, (column: C_Activity_ID)
Canceled/Not Charged
- Physical column name: Cancelednotchargeamt
- Property Name: canceledNotCharged
- Reference: Amount
Charged Amount
- Physical column name: Chargedamt
- Property Name: chargedAmount
- Reference: Amount
Client
- Physical column name: AD_Client_ID
- Property Name: client
- Reference: TableDir
Foreign key column to AD_Client table, (column: AD_Client_ID)
Copy from
- Physical column name: CopyFrom
- Property Name: copyFrom
- Reference: Button
- Default value: N
Create Lines From
- Physical column name: CreateFrom
- Property Name: createLinesFrom
- Reference: Button
Create file
- Physical column name: CreateFile
- Property Name: createFile
- Reference: Button
- Default value: N
Created Amount
- Physical column name: Generatedamt
- Property Name: createdAmount
- Reference: Amount
Created By
- Physical column name: CreatedBy
- Property Name: createdBy
- Reference: Search
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
Currency
- Physical column name: C_Currency_ID
- Property Name: currency
- Reference: TableDir
Foreign key column to C_Currency table, (column: C_Currency_ID)
Description
- Physical column name: Description
- Property Name: description
- Reference: Text
Document No.
- Physical column name: DocumentNo
- Property Name: documentNo
- Reference: String
- This column is part of the table's identifier
Document Type
- Physical column name: C_DocType_ID
- Property Name: documentType
- Reference: TableDir
Foreign key column to C_DocType table, (column: C_DocType_ID)
It has a validation "C_DocType - Payments/Receipts", with the following code
C_DocType.DocBaseType=@DOCTYPE_SETTLEMENT@ AND AD_ISORGINCLUDED(@AD_Org_ID@,C_DocType.AD_Org_ID, @#AD_Client_ID@) <> '-1'
Generated
- Physical column name: IsGenerated
- Property Name: generated
- Reference: YesNo
- Default value: N
Open settlement
- Physical column name: SettlementOpen
- Property Name: openSettlement
- Reference: Button
- Default value: N
Organization
- Physical column name: AD_Org_ID
- Property Name: organization
- Reference: TableDir
Foreign key column to AD_Org table, (column: AD_Org_ID)
Posted
- Physical column name: Posted
- Property Name: posted
- Reference: List
- Default value: N
List values: All_Posted Status
The allowed values for this list are:
- N (Post)
- Y (Unpost)
- b (Post: Not Balanced)
- c (Post: Not Convertible (no rate))
- p (Post: Period Closed)
- y (Post: Post Prepared)
- i (Post: Invalid Account)
- E (Post: Error)
- NC (Post: Cost Not Calculated)
- AD (Post: No Accounting Date)
- T (Post: Table Disabled)
- C (Post: Error, No cost)
- d (Post: Disabled For Background)
- L (Post: Document Locked)
- NO (Post: No Related PO)
- D (Post: Document Disabled): Document disabled for accounting
Process Now
- Physical column name: Processing
- Property Name: processNow
- Reference: YesNo
Processed
- Physical column name: Processed
- Property Name: processed
- Reference: List
- Default value: N
List values: All_Processed_Status
The allowed values for this list are:
- N (Process)
- Y (Unprocess)
Project
- Physical column name: C_Project_ID
- Property Name: project
- Reference: TableDir
Foreign key column to C_Project table, (column: C_Project_ID)
Sales Campaign
- Physical column name: C_Campaign_ID
- Property Name: salesCampaign
- Reference: TableDir
Foreign key column to C_Campaign table, (column: C_Campaign_ID)
Settlement
- Physical column name: C_Settlement_ID
- Property Name: id
- Reference: ID
Settlement Type
- Physical column name: Settlementtype
- Property Name: settlementType
- Reference: List
List values: Settlement type
The allowed values for this list are:
- C (Cancel/Generate)
- I (GL Item)
- B (Charge (Cash/Bank))
Template
- Physical column name: IsTemplate
- Property Name: template
- Reference: YesNo
- Default value: N
Transaction Date
- Physical column name: DateTrx
- Property Name: transactionDate
- Reference: Date
- This column is part of the table's identifier
Updated
- Physical column name: Updated
- Property Name: updated
- Reference: DateTime
- Default value: SYSDATE
Updated By
- Physical column name: UpdatedBy
- Property Name: updatedBy
- Reference: Search
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_SETTLEMENT_POSTED Not Unique. Columns:
- POSTED
- C_SETTLEMENT_UPDATED Not Unique. Columns:
- UPDATED
Check Constraints
These are the check constraints for this table:
- C_SETTLEMENT_CREATEFILE_CHK: CREATEFILE IN ('Y', 'N')
- C_SETTLEMENT_DATEACCT_CHK: DATEACCT IS NOT NULL
- C_SETTLEMENT_ISACTIVE_CHECK: ISACTIVE IN ('Y', 'N')
- C_SETTLEMENT_PROCESSED_CHK: PROCESSED IN ('Y', 'N')