Table

CommissionTrans

Commission transactions

Holds commission transaction records. Each record links a person to an invoice, item, sales category and amounts in transaction and accounting currency. It has no defined key. Several fields are used for Italy and cover settlement on invoice or on payment, thresholds and a lot ID.

Table name
CommissionTrans
Module
Sales and marketing
Table group
Transaction
Table type
Regular
Data per company
Yes
Configuration key
Commission
Primary index
RecId
Replacement key
None
Key fields
None
Model
Foundation

Fields (20)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
AmountCurCommission amount in the transaction currency.Real
AmountCur
NoNone
AmountMSTCommission amount in the accounting currency.Real
AmountMST
NoNone
CommissionType_ITWhether commission is settled on invoice or on payment, used for Italy.Enum
CommissionType_IT (enum)
NoNone
CurrencyCodeCurrency code of the transaction. Points to the currency table.String (3)
CurrencyCode
NoCurrency.CurrencyCodeNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DefaultDimensionSet of financial dimension values attached to the record.Int64
LedgerDefaultDimensionValueSet
NoDimensionAttributeValueSet.RecIdNone
InventTransId_ITLot ID linking to the inventory transaction origin, used for Italy.String (20)
InventTransId
NoInventTransOrigin.InventTransIdNone
InvoiceDateDate of the related customer invoice.Date
TransDate
NoNone
InvoiceIdNumber of the related customer invoice.String (50)
InvoiceId
NoNone
ItemIdItem number the commission relates to. Points to the item table.String (20)
ItemId
NoInventTable.ItemIdNone
LowerThreshold_ITLower percentage bound for settlement 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
PersonThe person the commission is for. Points to a person record by its system record ID.Int64
CommissionPerson
YesDirPerson.RecIdNone
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
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
SalesCategorySales category of the transaction. Points to a category record.Int64
SalesCategory
NoEcoResCategory.RecIdNone
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
UpperThreshold_ITUpper percentage bound for settlement on payment, used for Italy.Integer
CommissionUpperThreshold_IT
NoNone
UseThresholds_ITYes/No flag for payment thresholds, used for Italy.Enum
NoYes (enum)
NoNone

Indexes (2)

Relations (9)

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

  • Currency → Currency

    Join on CurrencyCode = Currency.CurrencyCode

    Many CommissionTrans records → zero or one Currency record

  • CustInvoiceJour → CustInvoiceJour

    Join on InvoiceDate = CustInvoiceJour.InvoiceDate, InvoiceId = CustInvoiceJour.InvoiceId

    Many CommissionTrans records → zero or one CustInvoiceJour record

  • DefaultDimension → DimensionAttributeValueSet

    Join on DefaultDimension = DimensionAttributeValueSet.RecId

    Many CommissionTrans records → zero or one DimensionAttributeValueSet record

  • InventTable → InventTable

    Join on ItemId = InventTable.ItemId

    Many CommissionTrans records → zero or one InventTable record

  • Person_FK → DirPerson

    Join on Person = DirPerson.RecId

    Many CommissionTrans records → exactly one DirPerson record

  • ProjInvoiceJour → ProjInvoiceJour

    Join on InvoiceId = ProjInvoiceJour.ProjInvoiceId, InvoiceDate = ProjInvoiceJour.InvoiceDate

    Many CommissionTrans records → zero or one ProjInvoiceJour record

  • SalesCategory → EcoResCategory

    Join on SalesCategory = EcoResCategory.RecId

    Many CommissionTrans records → zero or one EcoResCategory record

  • InventTransOrigin_IT → InventTransOrigin

    Join on InventTransId_IT = InventTransOrigin.InventTransId

    Many CommissionTrans records → zero or one InventTransOrigin record

  • CommissionAccruing_IT → CommissionAccruing_IT

    Join on InventTransId_IT = CommissionAccruing_IT.InventTransId, Person = CommissionAccruing_IT.Person, ItemId = CommissionAccruing_IT.ItemId, InvoiceId = CommissionAccruing_IT.InvoiceId

    One or more CommissionTrans records → zero or one CommissionAccruing_IT record

Get this data out

No public entity reads from CommissionTrans. Its data is only reachable through the application, a custom entity or a database export.

Need help with CommissionTrans in a report, an integration or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk