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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
FiscalCalendarYearPoints to the fiscal calendar year (by system record ID). | Int64FiscalCalendarYearRecId | No | FiscalCalendarYear.RecId | None |
KmThe mileage total. | RealTrvMileage | No | None | |
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 | |
SatsThe mileage rate. | RealTrvCostRate | Yes | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
VehicleTypeThe type of vehicle. It relates to the mileage rate tiers. | String (30)TrvVehicleType | No | None | |
WorkerPoints to the worker (by system record ID). | Int64RefRecId | Yes | HcmWorker.RecId | None |
YearThe year as a number. | IntegerYr | No | None |
Indexes (1)
EmplDateSatsWorker,VehicleType,Year,SatsNot unique.
Relations (3)
Each relation joins TrvKmSum to another table on the fields shown.
TrvCostTypeRates→TrvCostTypeRatesJoin on
VehicleType = TrvCostTypeRates.VehicleTypeMany TrvKmSum records → exactly one TrvCostTypeRates record
TrvHcmWorker→HcmWorkerJoin on
Worker = HcmWorker.RecIdMany TrvKmSum records → exactly one HcmWorker record
FiscalCalendarYear→FiscalCalendarYearJoin on
FiscalCalendarYear = FiscalCalendarYear.RecIdMany 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.