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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
AmountCurCommission amount in the transaction currency. | RealAmountCur | No | None | |
AmountMSTCommission amount in the accounting currency. | RealAmountMST | No | None | |
CommissionType_ITWhether commission is settled on invoice or on payment, used for Italy. | EnumCommissionType_IT (enum) | No | None | |
CurrencyCodeCurrency code of the transaction. Points to the currency table. | String (3)CurrencyCode | No | Currency.CurrencyCode | None |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DefaultDimensionSet of financial dimension values attached to the record. | Int64LedgerDefaultDimensionValueSet | No | DimensionAttributeValueSet.RecId | None |
InventTransId_ITLot ID linking to the inventory transaction origin, used for Italy. | String (20)InventTransId | No | InventTransOrigin.InventTransId | None |
InvoiceDateDate of the related customer invoice. | DateTransDate | No | None | |
InvoiceIdNumber of the related customer invoice. | String (50)InvoiceId | No | None | |
ItemIdItem number the commission relates to. Points to the item table. | String (20)ItemId | No | InventTable.ItemId | None |
LowerThreshold_ITLower percentage bound for settlement 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 | |
PersonThe person the commission is for. Points to a person record by its system record ID. | Int64CommissionPerson | Yes | DirPerson.RecId | 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 | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
SalesCategorySales category of the transaction. Points to a category record. | Int64SalesCategory | No | EcoResCategory.RecId | 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 | |
UpperThreshold_ITUpper percentage bound for settlement on payment, used for Italy. | IntegerCommissionUpperThreshold_IT | No | None | |
UseThresholds_ITYes/No flag for payment thresholds, used for Italy. | EnumNoYes (enum) | No | None |
Indexes (2)
PersonItemSalesCategoryIdxNot unique.
InvoiceIdIdxNot unique.
Relations (9)
Each relation joins CommissionTrans to another table on the fields shown.
Currency→CurrencyJoin on
CurrencyCode = Currency.CurrencyCodeMany CommissionTrans records → zero or one Currency record
CustInvoiceJour→CustInvoiceJourJoin on
InvoiceDate = CustInvoiceJour.InvoiceDate,InvoiceId = CustInvoiceJour.InvoiceIdMany CommissionTrans records → zero or one CustInvoiceJour record
DefaultDimension→DimensionAttributeValueSetJoin on
DefaultDimension = DimensionAttributeValueSet.RecIdMany CommissionTrans records → zero or one DimensionAttributeValueSet record
InventTable→InventTableJoin on
ItemId = InventTable.ItemIdMany CommissionTrans records → zero or one InventTable record
Person_FK→DirPersonJoin on
Person = DirPerson.RecIdMany CommissionTrans records → exactly one DirPerson record
ProjInvoiceJour→ProjInvoiceJourJoin on
InvoiceId = ProjInvoiceJour.ProjInvoiceId,InvoiceDate = ProjInvoiceJour.InvoiceDateMany CommissionTrans records → zero or one ProjInvoiceJour record
SalesCategory→EcoResCategoryJoin on
SalesCategory = EcoResCategory.RecIdMany CommissionTrans records → zero or one EcoResCategory record
InventTransOrigin_IT→InventTransOriginJoin on
InventTransId_IT = InventTransOrigin.InventTransIdMany CommissionTrans records → zero or one InventTransOrigin record
CommissionAccruing_IT→CommissionAccruing_ITJoin on
InventTransId_IT = CommissionAccruing_IT.InventTransId,Person = CommissionAccruing_IT.Person,ItemId = CommissionAccruing_IT.ItemId,InvoiceId = CommissionAccruing_IT.InvoiceIdOne 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.