Table

TrvExpPerdiemData

Meal reductions

Holds meal reduction details for per diem expense lines. It records the number of breakfasts, lunches and dinners, the reduction amount, and the day type. Each record links to an expense line, a legal entity and a currency. The configuration key is TrvPerDiem.

Table name
TrvExpPerdiemData
Module
Expense
Table group
Miscellaneous
Table type
Regular
Data per company
Yes
Configuration key
TrvPerDiem
Primary index
None
Replacement key
None
Key fields
None
Model
Foundation

Fields (16)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoTrvExpMobilePerDiemDataEntityTrvExpMobilePerDiemDataForLineApprovalEntityTrvExpMobilePerDiemDataForReportApprovalEntity
ExchangeCodeCurrency of the meal reduction amount.String (3)
TrvCurrencyCode
NoCurrency.CurrencyCodeTrvExpMobilePerDiemDataEntityTrvExpMobilePerDiemDataForLineApprovalEntityTrvExpMobilePerDiemDataForReportApprovalEntity
LegalEntityLegal entity the record belongs to.Int64
LegalEntity
NoCompanyInfo.RecIdTrvExpMobilePerDiemDataEntityTrvExpMobilePerDiemDataForLineApprovalEntityTrvExpMobilePerDiemDataForReportApprovalEntity
MealDeductionAmount deducted for meals.Real
TrvTransactionCurrencyAmount
NoTrvExpMobilePerDiemDataEntityTrvExpMobilePerDiemDataForLineApprovalEntityTrvExpMobilePerDiemDataForReportApprovalEntity
MealsandIncidentalsMSTAmount for meals and incidentals in the company currency.Real
AmountMST
NoTrvExpMobilePerDiemDataEntityTrvExpMobilePerDiemDataForLineApprovalEntityTrvExpMobilePerDiemDataForReportApprovalEntity
NumberOfBreakfastNumber of breakfasts counted.Integer
Integer
NoTrvExpMobilePerDiemDataEntityTrvExpMobilePerDiemDataForLineApprovalEntityTrvExpMobilePerDiemDataForReportApprovalEntity
NumberOfDinnerNumber of dinners counted.Integer
Integer
NoTrvExpMobilePerDiemDataEntityTrvExpMobilePerDiemDataForLineApprovalEntityTrvExpMobilePerDiemDataForReportApprovalEntity
NumberOfHrsDayPercentage value for the day, stored as a positive number.low confidenceReal
TrvRealBasePositive
NoTrvExpMobilePerDiemDataEntity
NumberOfLunchNumber of lunches counted.Integer
Integer
NoTrvExpMobilePerDiemDataEntityTrvExpMobilePerDiemDataForLineApprovalEntityTrvExpMobilePerDiemDataForReportApprovalEntity
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
NoTrvExpMobilePerDiemDataEntity
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TransDateDate of the transaction.Date
TrvDateStd
YesTrvExpMobilePerDiemDataEntityTrvExpMobilePerDiemDataForLineApprovalEntityTrvExpMobilePerDiemDataForReportApprovalEntity
TrvExpTransRecord ID of the linked expense line.Int64
RefRecId
NoTrvExpTrans.RecIdTrvExpMobilePerDiemDataEntityTrvExpMobilePerDiemDataForLineApprovalEntityTrvExpMobilePerDiemDataForReportApprovalEntity
TypeOfDateType of day: first, last, both or middle.Enum
TrvFirstLastBoth (enum)
NoTrvExpMobilePerDiemDataEntity

Indexes (2)

Relations (3)

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

  • Currency → Currency

    Join on ExchangeCode = Currency.CurrencyCode

    Many TrvExpPerdiemData records → zero or one Currency record

  • LegalEntity → CompanyInfo

    Join on LegalEntity = CompanyInfo.RecId

    Many TrvExpPerdiemData records → exactly one CompanyInfo record

  • TrvExpTrans → TrvExpTrans

    Join on TrvExpTrans = TrvExpTrans.RecId

    Many TrvExpPerdiemData records → exactly one TrvExpTrans record

Get this data out

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

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

Email sales@drdynamics.co.uk