Table

TrvAccountingDistribution

Expense accounting distribution

Holds amounts for an expense accounting distribution, in the transaction currency and the accounting currency. Each row links to an accounting distribution and to a cash advance request. It can also point to another row in the same table as a reference distribution. It has no defined key.

Table name
TrvAccountingDistribution
Module
Expense
Table group
Transaction
Table type
Regular
Data per company
No
Configuration key
Trv
Primary index
None
Replacement key
None
Key fields
None
Model
Foundation

Fields (12)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
AccountingDistributionPoints to the accounting distribution record (by system record ID) that this row relates to.Int64
RefRecId
NoAccountingDistribution.RecIdNone
AdvanceAmountThe requested amount, held in the transaction currency.Real
TrvTransactionCurrencyAmount
NoNone
AdvanceAmountMSTThe amount in the accounting currency.Real
AmountMST
NoNone
AdvanceCurrencyCodeCurrency code of the requested amount. It points to the currency table.String (3)
TrvCurrencyCode
NoCurrency.CurrencyCodeNone
CashAdvancePoints to the cash advance request (by system record ID) that this row belongs to.Int64
RefRecId
NoTrvCashAdvance.RecIdNone
EqualToDistributionYes/No flag labelled 'Equal to distribution'. Purpose not clear from the metadata.low confidenceEnum
NoYes (enum)
NoNone
FullySplitYes/No flag showing whether the distribution is fully split.Enum
NoYes (enum)
NoNone
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
ReferenceAccountingDistributionPoints to another expense accounting distribution row (by system record ID) that this row refers to.Int64
RefRecId
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone

Indexes (2)

Relations (4)

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

  • AccountingDistribution → AccountingDistribution

    Join on AccountingDistribution = AccountingDistribution.RecId

    Many TrvAccountingDistribution records → zero or one AccountingDistribution record

  • Currency → Currency

    Join on AdvanceCurrencyCode = Currency.CurrencyCode

    Many TrvAccountingDistribution records → zero or one Currency record

  • ReferenceDistribution → TrvAccountingDistribution

    Join on ReferenceAccountingDistribution = TrvAccountingDistribution.AccountingDistribution

    Cardinality not set in the metadata.

  • CashAdvance → TrvCashAdvance

    Join on CashAdvance = TrvCashAdvance.RecId

    Many TrvAccountingDistribution records → zero or one TrvCashAdvance record

Get this data out

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

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

Email sales@drdynamics.co.uk