Table
RTSLCurrencyRule
Translation currency rules
Defines translation currency rules for each currency within a currency rule group. For the transaction, accounting and secondary amounts it sets an action and an optional inflation index. It also sets which rate method to use.
- Table name
RTSLCurrencyRule- Module
General ledger- Table group
Group- Table type
Regular- Data per company
Yes- Configuration key
LedgerBasic- Primary index
CurrencyRuleIdx- Replacement key
CurrencyRuleIdx- Key fields
RuleGroupId, CurrencyRuleGroupId, CurrencyCode- Model
Foundation
Fields (17)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
RuleGroupIdThe translation rule group that owns this rule. | StringRTSLRuleGroupId | Yes | RTSLRuleGroup.RuleGroupId | None |
CurrencyRuleGroupIdThe currency rule group that contains this rule. | StringRTSLCurrencyRuleGroupId | Yes | RTSLCurrencyRuleGroup.CurrencyRuleGroupId | None |
CurrencyCodeThe currency that the rule applies to. | String (3)CurrencyCode | Yes | Currency.CurrencyCode | RTSLCurrencyRuleEntity |
CurrencyActionAction applied to the amount in transaction currency, for example take it from the transaction or set it to zero. | EnumRTSLCurrencyAction (enum) | No | RTSLCurrencyRuleEntity | |
CurrencyIndexIdInflation index used for the transaction currency amount. | StringRTSLCurrencyIndexId | No | RTSLCurrencyIndex.CurrencyIndexId | RTSLCurrencyRuleEntity |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
MSTActionAction applied to the amount in accounting currency. | EnumRTSLCurrencyAction (enum) | No | RTSLCurrencyRuleEntity | |
MSTIndexIdInflation index used for the accounting currency amount. | StringRTSLCurrencyIndexId | No | RTSLCurrencyIndex.CurrencyIndexId | RTSLCurrencyRuleEntity |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | 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 | |
SecondaryActionAction applied to the amount in the secondary (reporting) currency. | EnumRTSLCurrencyAction (enum) | No | RTSLCurrencyRuleEntity | |
SecondaryIndexIdInflation index used for the secondary currency amount. | StringRTSLCurrencyIndexId | No | RTSLCurrencyIndex.CurrencyIndexId | RTSLCurrencyRuleEntity |
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 | |
ToCompanyIdThe target company of the translation. | StringRTSLToCompanyId | Yes | RTSLCurrencyRuleGroup.ToCompanyId | None |
UseRatesRate method chosen: no changes, use indexes or use exchange rates. | EnumRTSLCurrencyRate (enum) | No | RTSLCurrencyRuleEntity |
Indexes (1)
CurrencyRuleIdxPrimary indexReplacement keyRuleGroupId,CurrencyRuleGroupId,CurrencyCodeUnique, alternate key.
Relations (7)
Each relation joins RTSLCurrencyRule to another table on the fields shown.
Currency→CurrencyJoin on
CurrencyCode = Currency.CurrencyCodeOne or more RTSLCurrencyRule records → exactly one Currency record
CurrencyIndex1→RTSLCurrencyIndexJoin on
RuleGroupId = RTSLCurrencyIndex.RuleGroupId,CurrencyIndexId = RTSLCurrencyIndex.CurrencyIndexIdMany RTSLCurrencyRule records → zero or one RTSLCurrencyIndex record
CurrencyIndex2→RTSLCurrencyIndexJoin on
RuleGroupId = RTSLCurrencyIndex.RuleGroupId,SecondaryIndexId = RTSLCurrencyIndex.CurrencyIndexIdMany RTSLCurrencyRule records → zero or one RTSLCurrencyIndex record
CurrencyIndex3→RTSLCurrencyIndexJoin on
RuleGroupId = RTSLCurrencyIndex.RuleGroupId,MSTIndexId = RTSLCurrencyIndex.CurrencyIndexIdMany RTSLCurrencyRule records → zero or one RTSLCurrencyIndex record
CurrencyRuleGroup→RTSLCurrencyRuleGroupJoin on
ToCompanyId = RTSLCurrencyRuleGroup.ToCompanyId,RuleGroupId = RTSLCurrencyRuleGroup.RuleGroupId,CurrencyRuleGroupId = RTSLCurrencyRuleGroup.CurrencyRuleGroupIdMany RTSLCurrencyRule records → exactly one RTSLCurrencyRuleGroup record
RTSLRuleGroupRuleGroupId→RTSLRuleGroupJoin on
RuleGroupId = RTSLRuleGroup.RuleGroupIdOne or more RTSLCurrencyRule records → exactly one RTSLRuleGroup record
RTSLRuleGroupToCompanyId→RTSLRuleGroupJoin on
ToCompanyId = RTSLRuleGroup.ToCompanyIdOne or more RTSLCurrencyRule records → exactly one RTSLRuleGroup record
Get this data out
Tables are not exposed directly. These public entities read from RTSLCurrencyRule; use one of them in Power BI, Power Platform or a data management project.
RTSLCurrencyRuleEntity· 8 fields from this table
Need help with RTSLCurrencyRule in a report, an integration or a migration? Talk to Dr Dynamics.