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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
CostTypeExpense category the rate belongs to. Points to the expense categories. | String (30)TrvCostTypeEDT | Yes | TrvCostType.CostType | TrvMileageRateEntity |
FromDateFirst date the rate is valid. | DateFromDate | No | TrvMileageRateEntity | |
QtyQuantity at which the tier applies. | RealQty | No | TrvMileageRateEntity | |
RateTypeKind of rate: mileage or passenger. | EnumTrvMileageRateType (enum) | No | TrvMileageRateEntity | |
VehicleTypeType of vehicle the rate is for. | String (30)TrvVehicleType | No | TrvMileageRateEntity | |
CostRateRate applied for the tier. | RealTrvCostRate | No | TrvMileageRateEntity | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DescriptionShort description of the tier. | String (60)Description | No | TrvMileageRateEntity | |
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 | |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
ToDateLast date the rate is valid. | DateToDate | No | TrvMileageRateEntity |
Indexes (1)
CostTypeQtyIdxReplacement keyCostType,FromDate,Qty,RateType,VehicleTypeUnique, alternate key.
Relations (1)
Each relation joins TrvCostTypeRates to another table on the fields shown.
TrvCostType→TrvCostTypeJoin on
CostType = TrvCostType.CostTypeMany 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.
TrvMileageRateEntity· 8 fields from this table
Need help with TrvCostTypeRates in a report, an integration or a migration? Talk to Dr Dynamics.