Table

TrvKmSum

Mileage accounts

Holds mileage totals for a worker by vehicle type and year, with a mileage rate. Each row links to a worker and a fiscal calendar year. It has no defined key.

Table name
TrvKmSum
Module
Expense
Table group
Worksheet
Table type
Regular
Data per company
Yes
Configuration key
Trv
Primary index
RecId
Replacement key
None
Key fields
None
Model
Foundation

Fields (11)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
FiscalCalendarYearPoints to the fiscal calendar year (by system record ID).Int64
FiscalCalendarYearRecId
NoFiscalCalendarYear.RecIdNone
KmThe mileage total.Real
TrvMileage
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
SatsThe mileage rate.Real
TrvCostRate
YesNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
VehicleTypeThe type of vehicle. It relates to the mileage rate tiers.String (30)
TrvVehicleType
NoNone
WorkerPoints to the worker (by system record ID).Int64
RefRecId
YesHcmWorker.RecIdNone
YearThe year as a number.Integer
Yr
NoNone

Indexes (1)

Relations (3)

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

  • TrvCostTypeRates → TrvCostTypeRates

    Join on VehicleType = TrvCostTypeRates.VehicleType

    Many TrvKmSum records → exactly one TrvCostTypeRates record

  • TrvHcmWorker → HcmWorker

    Join on Worker = HcmWorker.RecId

    Many TrvKmSum records → exactly one HcmWorker record

  • FiscalCalendarYear → FiscalCalendarYear

    Join on FiscalCalendarYear = FiscalCalendarYear.RecId

    Many TrvKmSum records → zero or one FiscalCalendarYear record

Get this data out

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

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

Email sales@drdynamics.co.uk