Table
TrvAllowanceRate
Allowance rate
Holds allowance rate rules for per diems. Each record is keyed by the per diem, a minimum number of hours and the day type it applies to. It stores hour limits and percentage reductions for meals, hotel and other items.
- Table name
TrvAllowanceRate- Module
Expense- Table group
Reference- Table type
Regular- Data per company
Yes- Configuration key
TrvPerDiem- Primary index
RecId- Replacement key
PerDiemRecIdIdx- Key fields
PerDiemRecId, FromQty, TrvFirstLastBoth- Model
Foundation
Fields (18)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
PerDiemRecIdPoints to the per diem record the rate belongs to. | Int64RefRecId | Yes | TrvPerDiems.RecId | TrvAllowanceRateEntity |
FromQtyLowest number of hours for which the rate applies. | RealTrvRealBasePositive | No | TrvAllowanceRateEntity | |
TrvFirstLastBothDay type the rate applies to: first day, last day, both or middle. | EnumTrvFirstLastBoth (enum) | No | TrvAllowanceRateEntity | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DeductBreakfPercentage reduction when breakfast is provided. | RealTrvRealBasePositive | No | TrvAllowanceRateEntity | |
DeductDinnerPercentage reduction when dinner is provided. | RealTrvRealBasePositive | No | TrvAllowanceRateEntity | |
DeductLunchPercentage reduction when lunch is provided. | RealTrvRealBasePositive | No | TrvAllowanceRateEntity | |
DeductOneMealPercentage reduction when one meal is provided. | RealTrvRealBasePositive | No | TrvAllowanceRateEntity | |
DeductThreeOrMoreMealsPercentage reduction when three or more meals are provided. | RealTrvRealBasePositive | No | TrvAllowanceRateEntity | |
DeductTwoMealsPercentage reduction when two meals are provided. | RealTrvRealBasePositive | No | TrvAllowanceRateEntity | |
HotelReductionPercentage reduction for hotel. | RealTrvRealBasePositive | No | TrvAllowanceRateEntity | |
MealReductionPercentage reduction for meals. | RealTrvRealBasePositive | No | TrvAllowanceRateEntity | |
OtherReductionPercentage reduction for other items. | RealTrvRealBasePositive | No | TrvAllowanceRateEntity | |
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 | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
ToQtyHighest number of hours for which the rate applies. | RealTrvRealBasePositive | No | TrvAllowanceRateEntity |
Indexes (1)
PerDiemRecIdIdxReplacement keyPerDiemRecId,FromQty,TrvFirstLastBothUnique, alternate key.
Relations (1)
Each relation joins TrvAllowanceRate to another table on the fields shown.
PerDiemRecId→TrvPerDiemsJoin on
PerDiemRecId = TrvPerDiems.RecIdMany TrvAllowanceRate records → exactly one TrvPerDiems record
Get this data out
Tables are not exposed directly. These public entities read from TrvAllowanceRate; use one of them in Power BI, Power Platform or a data management project.
TrvAllowanceRateEntity· 13 fields from this table
Need help with TrvAllowanceRate in a report, an integration or a migration? Talk to Dr Dynamics.