ERP/3.0/Developers Guide/Database Model/org.openbravo.model.sales/C Commission
C_Commission
- Name:C_Commission
- Classname:SalesCommission
This table contains the following columns:
Name | Nullable | Data Type | Description
|
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. |
Basisamt | No | VARCHAR (60) | The amount that will take into account to calculate the commission: net amount or margin.
If margin is selected, only the invoices that have shipments will take into account. |
Basisstatus | No | VARCHAR (60) | The documents that will take into account to calculate the commission: all documents or fully paid documents) |
C_BPartner_ID | No | VARCHAR (32) | A Business Partner is anyone with whom you transact. This can include a customer, vendor, employee or any combination of these. |
DocBasisType | No | VARCHAR (60) | The Basis Document indicates the basis to be used for the commission calculation. |
iscascade | No | CHAR (1) | If it is checked the commission will be calculated in cascade |
AD_Client_ID | No | VARCHAR (32) | A Client is a company or a legal entity. You cannot share data between Clients. |
C_Commission_ID | No | VARCHAR (32) | The Commission ID is a unique identifier of a set of commission rules. |
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. |
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 | NVARCHAR (255) | A description is limited to 255 characters. |
FrequencyType | No | VARCHAR (60) | The frequency type is used for calculating the date of the next event. |
DateLastRun | Yes | TIMESTAMP (7) | The Date Last Run indicates the last time that a process was run. |
ListDetails | No | CHAR (1) | The List Details checkbox indicates that the details for each document line will be displayed. |
Name | No | NVARCHAR (60) | A more descriptive identifier (that does need to be unique) of a record/document that is used as a default search option along with the search key (that is unique and mostly shorter). It is up to 60 characters in length. |
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. |
Processing | Yes | CHAR (1) | When this field is set as 'Y' a process is being performed on this record. |
M_Product_ID | Yes | VARCHAR (32) | Identifies an item which is either purchased or sold in this organization. |
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
Active
- Physical column name: IsActive
- Property Name: active
- Reference: YesNo
- Default value: Y
Basisamt
- Physical column name: Basisamt
- Property Name: basisamt
- Reference: List
- Default value: N
It has a validation "C_Commission BasisAmt", with the following code
((AD_Ref_List.value='N' AND @DocBasisType@='O') OR (@DocBasisType@<>'O'))
Callout: SL_Commission_ListDetails
This column has a callout associated.
It is implemented by [1] Java Class.
List values: C_Commission BasisAmt
The allowed values for this list are:
- N (Net amount)
- M (Margin)
Basisstatus
- Physical column name: Basisstatus
- Property Name: basisstatus
- Reference: List
- Default value: A
It has a validation "C_Commision BasisStatus", with the following code
((AD_Ref_List.value='A' AND @DocBasisType@='O') OR (@DocBasisType@<>'O'))
List values: C_Commission BasisStatus
The allowed values for this list are:
- F (Fully paid documents)
- A (All documents)
Business Partner
- Physical column name: C_BPartner_ID
- Property Name: businessPartner
- Reference: Table
Foreign key column to C_BPartner table, (column: C_BPartner_ID)
Calculation Basis
- Physical column name: DocBasisType
- Property Name: calculationBasis
- Reference: List
List values: C_Commission DocBasis
The allowed values for this list are:
- O (Order)
- I (Invoice)
- R (Receipt)
Cascade
- Physical column name: iscascade
- Property Name: cascade
- Reference: YesNo
- Default value: N
Client
- Physical column name: AD_Client_ID
- Property Name: client
- Reference: TableDir
Foreign key column to AD_Client table, (column: AD_Client_ID)
Commission
- Physical column name: C_Commission_ID
- Property Name: id
- Reference: ID
Create Lines From
- Physical column name: CreateFrom
- Property Name: createLinesFrom
- Reference: Button
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: String
Frequency Type
- Physical column name: FrequencyType
- Property Name: frequencyType
- Reference: List
List values: C_Commission Frequency
The allowed values for this list are:
- S (Semi-monthly)
- W (Weekly)
- M (Monthly)
- Q (Quarterly)
Last Run Date
- Physical column name: DateLastRun
- Property Name: lastRunDate
- Reference: Date
List Details
- Physical column name: ListDetails
- Property Name: listDetails
- Reference: YesNo
- Default value: N
Callout: SL_Commission_ListDetails
This column has a callout associated.
It is implemented by [2] Java Class.
Name
- Physical column name: Name
- Property Name: name
- Reference: String
- This column is part of the table's identifier
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 is transactions allowed", with the following code
EXISTS (SELECT 1 FROM ad_orgtype WHERE ad_orgtype.ad_orgtype_id=ad_org.ad_orgtype_id AND IsTransactionsAllowed='Y') and IsReady='Y'
Process Now
- Physical column name: Processing
- Property Name: processNow
- Reference: Button
Product
- Physical column name: M_Product_ID
- Property Name: product
- Reference: Search
Foreign key column to M_Product table, (column: M_Product_ID)
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
Check Constraints
These are the check constraints for this table:
- C_COMMISSION_CREATEFROM_CHK: CREATEFROM IN ('Y', 'N')
- C_COMMISSION_ISACTIVE_CHECK: ISACTIVE IN ('Y', 'N')
- C_COMMISSION_ISCASCADE_CHK: ISCASCADE IN ('Y', 'N')
- C_COMMISSION_LISTDETAILS_CHK: LISTDETAILS IN ('Y', 'N')
![]() | Back to org.openbravo.model.sales |