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 descriptionType / EDT / enumMandatoryReferencesIn public entities
ItemCodeTells whether the item relation is a single item (Table), a group, or all items.Enum
TableGroupAll (enum)
NoNone
ItemRelationThe item or commission item group the rate applies to.String (20)
ItemRelation
NoCommissionItemGroup.GroupIdInventTable.ItemIdNone
CustomerCodeTells whether the customer relation is a single customer (Table), a group, or all customers.Enum
TableGroupAll (enum)
NoNone
CustomerRelationThe customer or commission customer group the rate applies to.String (20)
CustVendRel
NoCommissionCustomerGroup.GroupIdCustTable.AccountNumNone
SalesRepCodeTells whether the sales representative relation is a group or all.Enum
CommissionSalesRepCode (enum)
NoNone
SalesRepRelationThe commission sales group the rate applies to.String
SalesRepRel
NoCommissionSalesGroup.GroupIdNone
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoNone
AgreementHeaderExt_RUAgreement the rate relates to, linked by system record ID; used for Russia.Int64
AgreementHeaderExtRecId_RU
NoAgreementHeaderExt_RU.RecIdNone
CommissionBaseThe commission percentage.Real
CommissionRate
NoNone
CommissionBasisWhether commission is based on revenue or margin.Enum
RevenueContributionMargin (enum)
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DiscLevelDiscount stage used with the rate: before line discount, after line discount or after total discount.Enum
DiscLevel (enum)
NoNone
FromDateStart date of the rate.Date
StartDate
NoNone
LowerThreshold_ITLower percentage limit for commission settled on payment; used for Italy.Integer
CommissionLowerThreshold_IT
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
SearchAgainYes or No option labelled Find next.low confidenceEnum
SearchAgain
NoYes (enum)
NoNone
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
ToDateEnd date of the rate.Date
EndDate
NoNone
UpperThreshold_ITUpper percentage limit for commission settled on payment; used for Italy.Integer
CommissionUpperThreshold_IT
NoNone
UseThresholds_ITYes or No option for payment thresholds; used for Italy.Enum
NoYes (enum)
NoNone

Indexes (2)

Relations (6)

Each relation joins CommissionCalc to another table on the fields shown.

  • AgreementHeaderExt_RU → AgreementHeaderExt_RU

    Join on AgreementHeaderExt_RU = AgreementHeaderExt_RU.RecId

    Many CommissionCalc records → zero or one AgreementHeaderExt_RU record

  • CommisionCustomerGroup → CommissionCustomerGroup

    Join on CustomerCode = TableGroupAll::GroupId, CustomerRelation = CommissionCustomerGroup.GroupId

    Many CommissionCalc records → zero or one CommissionCustomerGroup record

  • CommissionItemGroup → CommissionItemGroup

    Join on ItemCode = TableGroupAll::GroupId, ItemRelation = CommissionItemGroup.GroupId

    Many CommissionCalc records → zero or one CommissionItemGroup record

  • CommissionSalesGroup → CommissionSalesGroup

    Join on SalesRepCode = CommissionSalesRepCode::GroupId, SalesRepRelation = CommissionSalesGroup.GroupId

    Many CommissionCalc records → zero or one CommissionSalesGroup record

  • CustTable → CustTable

    Join on CustomerCode = TableGroupAll::Table, CustomerRelation = CustTable.AccountNum

    Many CommissionCalc records → zero or one CustTable record

  • InventTable → InventTable

    Join on ItemCode = TableGroupAll::Table, ItemRelation = InventTable.ItemId

    Many 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.

Email sales@drdynamics.co.uk