View source | Discuss this page | Page history | Printable version   
Toolbox
Main Page
Upload file
What links here
Recent changes
Help

PDF Books
Add page
Show collection (0 pages)
Collections help

Search

ERP/2.50/Developers Guide/Database Model/org.openbravo.model.sales/C CommissionLine

Contents

C_CommissionLine

Define the selection criteria for paying the commission. If you do not enter restricting parameters (e.g. for specific Business Partner (Groups) or Product (Categories), etc. all transactions for the period will be used to calculate the commission.

This table contains the following columns:

Name Nullable Data Type Description
C_CommissionLine_ID NVARCHAR2(32)Commission Line
AD_Client_ID NVARCHAR2(32)Client for this installation.
AD_Org_ID NVARCHAR2(32)Organizational entity within client
IsActive NCHAR(1)A flag indicating whether this record is available for use or de-activated.
Created NDATEThe date that this record is completed.
CreatedBy NVARCHAR2(32)User who created this records
Updated NDATEx not implemented
UpdatedBy NVARCHAR2(32)User who updated this records
C_Commission_ID NVARCHAR2(32)Commission Identifier
Line NNUMBER(10, 0)A line stating the position of this request in the document.
Description YNVARCHAR2(255)A space to write additional related information.
AmtSubtract NNUMBERSubtract Amount for generating commissions
AmtMultiplier NNUMBERMultiplier Amount for generating commissions
QtySubtract NNUMBERQuantity to subtract when generating commissions
QtyMultiplier NNUMBERValue to multiply quantities by for generating commissions.
IsPositiveOnly NCHAR(1)Do not generate negative commissions
CommissionOrders NCHAR(1)Commission only Orders or Invoices, where this Sales Rep is entered
Org_ID YVARCHAR2(32)Organizational entity within client
M_Product_Category_ID YVARCHAR2(32)A classification of items based on similar characteristics or attributes.
M_Product_ID YVARCHAR2(32)An item produced by a process.
C_BP_Group_ID YVARCHAR2(32)A classification of business partners based on defined similarities.
C_BPartner_ID YVARCHAR2(32)Anyone who takes part in daily business operations by acting as a customer, employee, etc.
C_SalesRegion_ID YVARCHAR2(32)A defined section of the world where sales efforts will be focused.

Other Info

Check constraints

These are the check constraints for this table:

top

Indexes

These are the indexes for this table (for each index there is a list of all the columns included within it):

Non Unique

Unique

top

Columns

Commission Line

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.

top

Client

Foreign key column to AD_Client table, (column: AD_Client_ID)

top

Organization

Foreign key column to AD_Org table, (column: AD_Org_ID)

top

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.

top

Creation Date

The Created field indicates the date that this record was created.

top

Created By

Foreign key column to AD_User table, (column: AD_User_ID)

top

Updated

The Updated field indicates the date that this record was updated.

top

Updated By

Foreign key column to AD_User table, (column: AD_User_ID)

top

Commission

Foreign key column to C_Commission table, (column: C_Commission_ID)

top

Line No.

Indicates the unique line for a document. It will also control the display order of the lines within a document.

top

Description

A description is limited to 255 characters.

top

Subtract Amount

The Subtract Amount indicates the amount to subtract from the total amount prior to multiplication.

top

Multiplier Amount

The Multiplier Amount indicates the amount to multiply the total amount generated by this commission run by.

top

Subtract Quantity

The Quantity Subtract identifies the quantity to be subtracted before multiplication

top

Multiplier Quantity

The Multiplier Quantity field indicates the amount to multiply the quantities accumulated for this commission run.

top

Positive only

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.

top

Commission only specified Orders

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.

top

Trx Organization

Foreign key column to AD_Org table, (column: AD_Org_ID)


Reference Table AD_Org (Trx) With the following where clause:

 
AD_Org.IsSummary='N' AND AD_Org_ID <> '0'


top

Product Category

Foreign key column to M_Product_Category table, (column: M_Product_Category_ID)

top

Product

Foreign key column to M_Product table, (column: M_Product_ID)

top

Business Partner Category

Foreign key column to C_BP_Group table, (column: C_BP_Group_ID)

top

Business Partner

Foreign key column to C_BPartner table, (column: C_BPartner_ID)

top

Sales Region

Foreign key column to C_SalesRegion table, (column: C_SalesRegion_ID)

top

Related tables

Tables that link this table:

top

Retrieved from "http://wiki.openbravo.com/wiki/ERP/2.50/Developers_Guide/Database_Model/org.openbravo.model.sales/C_CommissionLine"

This page has been accessed 1,143 times. This page was last modified on 2 July 2011, at 21:12. Content is available under Creative Commons Attribution-ShareAlike 2.5 Spain License.