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 descriptionType / EDT / enumMandatoryReferencesIn public entities
RuleGroupIdThe translation rule group that owns this rule.String
RTSLRuleGroupId
YesRTSLRuleGroup.RuleGroupIdNone
CurrencyRuleGroupIdThe currency rule group that contains this rule.String
RTSLCurrencyRuleGroupId
YesRTSLCurrencyRuleGroup.CurrencyRuleGroupIdNone
CurrencyCodeThe currency that the rule applies to.String (3)
CurrencyCode
YesCurrency.CurrencyCodeRTSLCurrencyRuleEntity
CurrencyActionAction applied to the amount in transaction currency, for example take it from the transaction or set it to zero.Enum
RTSLCurrencyAction (enum)
NoRTSLCurrencyRuleEntity
CurrencyIndexIdInflation index used for the transaction currency amount.String
RTSLCurrencyIndexId
NoRTSLCurrencyIndex.CurrencyIndexIdRTSLCurrencyRuleEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
MSTActionAction applied to the amount in accounting currency.Enum
RTSLCurrencyAction (enum)
NoRTSLCurrencyRuleEntity
MSTIndexIdInflation index used for the accounting currency amount.String
RTSLCurrencyIndexId
NoRTSLCurrencyIndex.CurrencyIndexIdRTSLCurrencyRuleEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
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
SecondaryActionAction applied to the amount in the secondary (reporting) currency.Enum
RTSLCurrencyAction (enum)
NoRTSLCurrencyRuleEntity
SecondaryIndexIdInflation index used for the secondary currency amount.String
RTSLCurrencyIndexId
NoRTSLCurrencyIndex.CurrencyIndexIdRTSLCurrencyRuleEntity
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
ToCompanyIdThe target company of the translation.String
RTSLToCompanyId
YesRTSLCurrencyRuleGroup.ToCompanyIdNone
UseRatesRate method chosen: no changes, use indexes or use exchange rates.Enum
RTSLCurrencyRate (enum)
NoRTSLCurrencyRuleEntity

Indexes (1)

Relations (7)

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

  • Currency → Currency

    Join on CurrencyCode = Currency.CurrencyCode

    One or more RTSLCurrencyRule records → exactly one Currency record

  • CurrencyIndex1 → RTSLCurrencyIndex

    Join on RuleGroupId = RTSLCurrencyIndex.RuleGroupId, CurrencyIndexId = RTSLCurrencyIndex.CurrencyIndexId

    Many RTSLCurrencyRule records → zero or one RTSLCurrencyIndex record

  • CurrencyIndex2 → RTSLCurrencyIndex

    Join on RuleGroupId = RTSLCurrencyIndex.RuleGroupId, SecondaryIndexId = RTSLCurrencyIndex.CurrencyIndexId

    Many RTSLCurrencyRule records → zero or one RTSLCurrencyIndex record

  • CurrencyIndex3 → RTSLCurrencyIndex

    Join on RuleGroupId = RTSLCurrencyIndex.RuleGroupId, MSTIndexId = RTSLCurrencyIndex.CurrencyIndexId

    Many RTSLCurrencyRule records → zero or one RTSLCurrencyIndex record

  • CurrencyRuleGroup → RTSLCurrencyRuleGroup

    Join on ToCompanyId = RTSLCurrencyRuleGroup.ToCompanyId, RuleGroupId = RTSLCurrencyRuleGroup.RuleGroupId, CurrencyRuleGroupId = RTSLCurrencyRuleGroup.CurrencyRuleGroupId

    Many RTSLCurrencyRule records → exactly one RTSLCurrencyRuleGroup record

  • RTSLRuleGroupRuleGroupId → RTSLRuleGroup

    Join on RuleGroupId = RTSLRuleGroup.RuleGroupId

    One or more RTSLCurrencyRule records → exactly one RTSLRuleGroup record

  • RTSLRuleGroupToCompanyId → RTSLRuleGroup

    Join on ToCompanyId = RTSLRuleGroup.ToCompanyId

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

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

Email sales@drdynamics.co.uk