Table

TrvCostTypeRates

Mileage rate tiers

Holds mileage rate tiers for an expense category. Each record is keyed by category, start date, quantity, rate type and vehicle type. It gives the rate that applies within a date range.

Table name
TrvCostTypeRates
Module
Expense
Table group
Reference
Table type
Regular
Data per company
Yes
Configuration key
Trv
Primary index
RecId
Replacement key
CostTypeQtyIdx
Key fields
CostType, FromDate, Qty, RateType, VehicleType
Model
Foundation

Fields (14)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
CostTypeExpense category the rate belongs to. Points to the expense categories.String (30)
TrvCostTypeEDT
YesTrvCostType.CostTypeTrvMileageRateEntity
FromDateFirst date the rate is valid.Date
FromDate
NoTrvMileageRateEntity
QtyQuantity at which the tier applies.Real
Qty
NoTrvMileageRateEntity
RateTypeKind of rate: mileage or passenger.Enum
TrvMileageRateType (enum)
NoTrvMileageRateEntity
VehicleTypeType of vehicle the rate is for.String (30)
TrvVehicleType
NoTrvMileageRateEntity
CostRateRate applied for the tier.Real
TrvCostRate
NoTrvMileageRateEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DescriptionShort description of the tier.String (60)
Description
NoTrvMileageRateEntity
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
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
ToDateLast date the rate is valid.Date
ToDate
NoTrvMileageRateEntity

Indexes (1)

Relations (1)

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

  • TrvCostType → TrvCostType

    Join on CostType = TrvCostType.CostType

    Many TrvCostTypeRates records → exactly one TrvCostType record

Get this data out

Tables are not exposed directly. These public entities read from TrvCostTypeRates; use one of them in Power BI, Power Platform or a data management project.

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

Email sales@drdynamics.co.uk