ERP/2.50/Developers Guide/Database Model/org.openbravo.model.sales/C CommissionRun
Contents |
C_CommissionRun
Contains all the commission run for a period
- Name:SalesCommissionRun
- Classname:CommissionRun
This table contains the following columns:
Name | Nullable | Data Type | Description |
C_CommissionRun_ID | N | VARCHAR2(32) | Commission Run or Process |
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 |
DocumentNo | N | NVARCHAR2(30) | An often automatically generated identifier for all documents. |
Description | Y | NVARCHAR2(255) | A space to write additional related information. |
C_Commission_ID | N | VARCHAR2(32) | Commission Identifier |
StartDate | N | DATE | A parameter stating when a specified request will begin. |
GrandTotal | N | NUMBER | The final monetary amount (including taxes) charge listed in a document. |
Processing | Y | 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_Invoice_ID | Y | VARCHAR2(32) | A document listing products, quantities and prices, payment terms, etc. |
Other Info
Check constraints
These are the check constraints for this table:
- C_COMMISRUN_ISACTIVE_CHECK: ISACTIVE IN ('Y', 'N')
- C_COMMISRUN_PROCESSED_CHECK: PROCESSED 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_COMMISSIONRUN_KEY
Columns
Commission Run
The Commission Run is a unique system defined identifier of a specific run of commission. When a Commission is processed on the Commission Screen, the Commission Run ID will display.
- Physical column name: C_CommissionRun_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)
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)
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
Creation Date
The Created field indicates the date that this record was created.
- Physical column name: Created
- Property Name: creationDate
- Reference: DateTime
Created By
- Physical column name: CreatedBy
- Property Name: createdBy
- Reference: Search
Foreign key column to AD_User table, (column: AD_User_ID)
Updated
The Updated field indicates the date that this record was updated.
- Physical column name: Updated
- Property Name: updated
- Reference: DateTime
Updated By
- Physical column name: UpdatedBy
- Property Name: updatedBy
- Reference: Search
Foreign key column to AD_User table, (column: AD_User_ID)
Document No.
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).
- Physical column name: DocumentNo
- Property Name: documentNo
- Reference: String
- This column is part of the table's identifier
Description
A description is limited to 255 characters.
- Physical column name: Description
- Property Name: description
- Reference: String
Commission
- Physical column name: C_Commission_ID
- Property Name: commission
- Reference: TableDir
Foreign key column to C_Commission table, (column: C_Commission_ID)
Starting Date
A parameter stating when a specified request will begin.
- Physical column name: StartDate
- Property Name: startingDate
- Reference: Date
Grand Total Amount
The Grand Total displays the total amount including Tax and Freight in document currency
- Physical column name: GrandTotal
- Property Name: grandTotalAmount
- Reference: Amount
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: Button
Processed
The Processed checkbox indicates that a document has been processed.
- Physical column name: Processed
- Property Name: processed
- Reference: YesNo
Invoice
- Physical column name: C_Invoice_ID
- Property Name: invoice
- Reference: Search
Foreign key column to C_Invoice table, (column: C_Invoice_ID)