ERP/3.0/Developers Guide/Database Model/org.openbravo.model.sales/C CommissionLine
C_CommissionLine
- Name:C_CommissionLine
- Classname:SalesCommissionLine
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. |
C_BPartner_ID | Yes | VARCHAR (32) | A Business Partner is anyone with whom you transact. This can include a customer, vendor, employee or any combination of these. |
C_BP_Group_ID | Yes | VARCHAR (32) | A way of grouping business partners together for classification and reporting purposes. Provides a method of defining certain defaults to be used when opening new business partners. |
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. |
C_CommissionLine_ID | No | VARCHAR (32) | The Commission Line is a unique instance of a Commission Run. If the commission run was done in summary mode then there will be a single line representing the selected documents totals. If the commission run was done in detail mode then each document that was included in the run will have its own commission line. |
CommissionOrders | No | CHAR (1) | Sales Reps are entered in Orders and Invoices. If selected, only Orders and Invoices for this Sales Reps are included in the calculation of the commission. |
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. |
Description | Yes | NVARCHAR (255) | A description is limited to 255 characters. |
Exclude | No | CHAR (1) | If exclude is checked, the lines that satisfied the conditions specified in the current line will be excluded in commission calculation. The check box Cascade must be checked for being able to exclude lines. |
Line | No | DECIMAL (10,0) | Indicates the unique line for a document. It will also control the display order of the lines within a document. |
AmtMultiplier | No | DECIMAL | The Multiplier Amount indicates the amount to multiply the total amount generated by this commission run by. |
QtyMultiplier | No | DECIMAL | The Multiplier Quantity field indicates the amount to multiply the quantities accumulated for this commission run. |
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. |
IsPositiveOnly | No | CHAR (1) | The Positive Only check box indicates that if the result of the subtraction is negative, it is ignored. This would mean that negative commissions would not be generated. |
M_Product_ID | Yes | VARCHAR (32) | Identifies an item which is either purchased or sold in this organization. |
M_Product_Category_ID | Yes | VARCHAR (32) | Identifies the category which this product belongs to. Product categories are used for pricing. |
C_SalesRegion_ID | Yes | VARCHAR (32) | The Sales Region indicates a specific area of sales coverage. |
AmtSubtract | No | DECIMAL | The Subtract Amount indicates the amount to subtract from the total amount prior to multiplication. |
QtySubtract | No | DECIMAL | The Quantity Subtract identifies the quantity to be subtracted before multiplication |
Org_ID | Yes | VARCHAR (32) | An organization is a unit of your client or legal entity - examples are store, department. |
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
Business Partner
- Physical column name: C_BPartner_ID
- Property Name: businessPartner
- Reference: Search
Foreign key column to C_BPartner table, (column: C_BPartner_ID)
Business Partner Category
- Physical column name: C_BP_Group_ID
- Property Name: businessPartnerCategory
- Reference: TableDir
Foreign key column to C_BP_Group table, (column: C_BP_Group_ID)
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: commission
- 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_Commission table, (column: C_Commission_ID)
Commission Line
- Physical column name: C_CommissionLine_ID
- Property Name: id
- Reference: ID
Commission only specified Orders
- Physical column name: CommissionOrders
- Property Name: commissionOnlySpecifiedOrders
- Reference: YesNo
- Default value: N
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
Description
- Physical column name: Description
- Property Name: description
- Reference: String
Exclude
- Physical column name: Exclude
- Property Name: exclude
- Reference: YesNo
- Default value: N
Line No.
- Physical column name: Line
- Property Name: lineNo
- Reference: Integer
- This column is part of the table's identifier
Multiplier Amount
- Physical column name: AmtMultiplier
- Property Name: multiplierAmount
- Reference: Number
Multiplier Quantity
- Physical column name: QtyMultiplier
- Property Name: multiplierQuantity
- Reference: Number
Organization
- Physical column name: AD_Org_ID
- Property Name: organization
- Reference: TableDir
Foreign key column to AD_Org table, (column: AD_Org_ID)
Positive only
- Physical column name: IsPositiveOnly
- Property Name: positiveOnly
- Reference: YesNo
- Default value: Y
Product
- Physical column name: M_Product_ID
- Property Name: product
- Reference: Search
Foreign key column to M_Product table, (column: M_Product_ID)
Product Category
- Physical column name: M_Product_Category_ID
- Property Name: productCategory
- Reference: TableDir
Foreign key column to M_Product_Category table, (column: M_Product_Category_ID)
Sales Region
- Physical column name: C_SalesRegion_ID
- Property Name: salesRegion
- Reference: TableDir
Foreign key column to C_SalesRegion table, (column: C_SalesRegion_ID)
Subtract Amount
- Physical column name: AmtSubtract
- Property Name: subtractAmount
- Reference: Amount
Subtract Quantity
- Physical column name: QtySubtract
- Property Name: subtractQuantity
- Reference: Quantity
Trx Organization
- Physical column name: Org_ID
- Property Name: trxOrganization
- Reference: Table
Foreign key column to AD_Org table, (column: AD_Org_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
Indices
These are the indices for this table (for each index there is a list of all the columns included within it):
- C_COMMISSIONLINE_COMMISSION Not Unique. Columns:
- C_COMMISSION_ID
Check Constraints
These are the check constraints for this table:
- C_COMMISSIONLIN_ISACTIVE_CHECK: ISACTIVE IN ('Y', 'N')
- C_COMMISSIONLINE_COMMISSIO_CHK: COMMISSIONORDERS IN ('Y', 'N')
- C_COMMISSIONLINE_EXCLUDE_CHK: EXCLUDE IN ('Y', 'N')
- C_COMMISSIONLINE_ISPOSITIV_CHK: ISPOSITIVEONLY IN ('Y', 'N')
![]() | Back to org.openbravo.model.sales |