Table
CommissionCalc
Commission rates
Holds commission rates. Each record sets a rate for a combination of item, customer and sales representative. Each of these can be a single record, a group or all. It also has a date range and a choice of revenue or margin as the basis.
- Table name
CommissionCalc- Module
Sales and marketing- Table group
Group- Table type
Regular- Data per company
Yes- Configuration key
Commission- Primary index
SearchIdx- Replacement key
None- Key fields
ItemCode, ItemRelation, CustomerCode, CustomerRelation, SalesRepCode, SalesRepRelation, RecId- Model
Foundation
Fields (22)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
ItemCodeTells whether the item relation is a single item (Table), a group, or all items. | EnumTableGroupAll (enum) | No | None | |
ItemRelationThe item or commission item group the rate applies to. | String (20)ItemRelation | No | CommissionItemGroup.GroupIdInventTable.ItemId | None |
CustomerCodeTells whether the customer relation is a single customer (Table), a group, or all customers. | EnumTableGroupAll (enum) | No | None | |
CustomerRelationThe customer or commission customer group the rate applies to. | String (20)CustVendRel | No | CommissionCustomerGroup.GroupIdCustTable.AccountNum | None |
SalesRepCodeTells whether the sales representative relation is a group or all. | EnumCommissionSalesRepCode (enum) | No | None | |
SalesRepRelationThe commission sales group the rate applies to. | StringSalesRepRel | No | CommissionSalesGroup.GroupId | None |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | None | |
AgreementHeaderExt_RUAgreement the rate relates to, linked by system record ID; used for Russia. | Int64AgreementHeaderExtRecId_RU | No | AgreementHeaderExt_RU.RecId | None |
CommissionBaseThe commission percentage. | RealCommissionRate | No | None | |
CommissionBasisWhether commission is based on revenue or margin. | EnumRevenueContributionMargin (enum) | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DiscLevelDiscount stage used with the rate: before line discount, after line discount or after total discount. | EnumDiscLevel (enum) | No | None | |
FromDateStart date of the rate. | DateStartDate | No | None | |
LowerThreshold_ITLower percentage limit for commission settled on payment; used for Italy. | IntegerCommissionLowerThreshold_IT | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
SearchAgainYes or No option labelled Find next.low confidence | EnumSearchAgainNoYes (enum) | No | None | |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
ToDateEnd date of the rate. | DateEndDate | No | None | |
UpperThreshold_ITUpper percentage limit for commission settled on payment; used for Italy. | IntegerCommissionUpperThreshold_IT | No | None | |
UseThresholds_ITYes or No option for payment thresholds; used for Italy. | EnumNoYes (enum) | No | None |
Indexes (2)
SearchIdxPrimary indexItemCode,ItemRelation,CustomerCode,CustomerRelation,SalesRepCode,SalesRepRelation,RecIdUnique.
AgreementHeaderExt_RUIdxNot unique.
Relations (6)
Each relation joins CommissionCalc to another table on the fields shown.
AgreementHeaderExt_RU→AgreementHeaderExt_RUJoin on
AgreementHeaderExt_RU = AgreementHeaderExt_RU.RecIdMany CommissionCalc records → zero or one AgreementHeaderExt_RU record
CommisionCustomerGroup→CommissionCustomerGroupJoin on
CustomerCode = TableGroupAll::GroupId,CustomerRelation = CommissionCustomerGroup.GroupIdMany CommissionCalc records → zero or one CommissionCustomerGroup record
CommissionItemGroup→CommissionItemGroupJoin on
ItemCode = TableGroupAll::GroupId,ItemRelation = CommissionItemGroup.GroupIdMany CommissionCalc records → zero or one CommissionItemGroup record
CommissionSalesGroup→CommissionSalesGroupJoin on
SalesRepCode = CommissionSalesRepCode::GroupId,SalesRepRelation = CommissionSalesGroup.GroupIdMany CommissionCalc records → zero or one CommissionSalesGroup record
CustTable→CustTableJoin on
CustomerCode = TableGroupAll::Table,CustomerRelation = CustTable.AccountNumMany CommissionCalc records → zero or one CustTable record
InventTable→InventTableJoin on
ItemCode = TableGroupAll::Table,ItemRelation = InventTable.ItemIdMany CommissionCalc records → zero or one InventTable record
Get this data out
No public entity reads from CommissionCalc. Its data is only reachable through the application, a custom entity or a database export.
Need help with CommissionCalc in a report, an integration or a migration? Talk to Dr Dynamics.