Table

TrvExpRecurringTemplate

(Preview) Recurring expenses

Holds templates for recurring expenses, marked as preview. Each template stores the worker and legal entity, the expense category, amount, currency, project and tax details. It also has fields for mileage, hotel, airline, car rental and entertainment expenses. It has no defined key.

Table name
TrvExpRecurringTemplate
Module
Expense
Table group
Main
Table type
Regular
Data per company
No
Configuration key
Trv
Primary index
RecId
Replacement key
None
Key fields
None
Model
ExpenseManagement

Fields (64)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
AdditionalInformationExtra free-text information about the expense.String (1000)
ItemFreeTxt
NoNone
AddressCityPoints to the city record (by system record ID).Int64
LogisticsAddressCityRecId
NoNone
AddressStateThe state code.String
LogisticsAddressStateId
NoNone
AddressZipCodePoints to the ZIP or postal code record (by system record ID).Int64
LogisticsAddressZipCodeRecId
NoNone
AirlineDomesticIndicatorYes/No flag with no label. It probably shows whether the flight is domestic.low confidenceEnum
NoYes (enum)
NoNone
AirlineIssuingCarrierThe airline that issued the ticket.String
TrvIssuingCarrier
NoNone
AirlinePassengerNameThe name of the airline passenger.String (50)
TrvName
NoNone
AirlineServiceClassAirline service class: Economy, First or Business.Enum
TrvAirlineServiceClass
TrvAirlineServiceClassEnum (enum)
NoNone
AirlineTravelAgencyCodeThe travel agency code.String
TrvTravelAgencyCode
NoNone
AirlineTravelAgencyNameThe travel agency name.String (50)
TrvName
NoNone
AmountCurrThe amount in the transaction currency.Real
TrvTransactionCurrencyAmount
NoNone
BusinessPurposeThe business purpose of the expense.String (100)
TrvLinePurposeEDT
NoNone
CarRentalCheckOutLocationThe location where the car is picked up.String (50)
TrvRentalLocation
NoNone
CarRentalDailyRateThe daily rental rate.Real
AmountCur
NoNone
CarRentalDaysRentedThe number of days the car is rented.Real
TrvDaysRented
NoNone
CarRentalMonthlyRentalRateThe monthly rental rate.Real
AmountCur
NoNone
CarRentalRenterNameThe name of the person renting the car.String (50)
TrvName
NoNone
CarRentalReservationNumberThe car rental reservation number.String (25)
TrvRentalReservationNumber
NoNone
CarRentalReturnLocationThe location where the car is returned.String (50)
TrvRentalLocation
NoNone
CarRentalTotalMilesThe total miles driven in the rental car.Real
TrvMileage
NoNone
CarRentalVehicleClassCar rental vehicle class: Compact, Intermediate or Full.Enum
TrvCarRentalVehicleClass
TrvCarRentalVehicleClassEnum (enum)
NoNone
CarRentalWeeklyRentalRateThe weekly rental rate.Real
AmountCur
NoNone
CostTypeThe expense category. It points to the expense category table.String (30)YesTrvCostType.CostTypeNone
CountryRegionThe country or region code.String
LogisticsAddressCountryRegionId
NoNone
CreatedByThe user who created the record. System field.String (20)
CreatedBy
NoNone
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
CreatingWorkerPoints to the worker (by system record ID) who created the template.Int64YesHcmWorker.RecIdNone
DefaultDimensionPoints to the set of financial dimension values (by system record ID).Int64
LedgerDefaultDimensionValueSet
NoDimensionAttributeValueSet.RecIdNone
DescriptionDescription of the expense category.String (60)
TrvExpTransDescription
NoNone
EntertainmentLocationThe location of the entertainment.String (100)
TrvEntertainmentLocation
NoNone
ExchangeCodeCurrency code. It points to the currency table.StringYesCurrency.CurrencyCodeNone
ExpTypeKind of expense, such as Miscellaneous, Per diem, Mileage, Airline or Car rental.Enum
TrvExpType (enum)
NoNone
HotelGuestNameThe name of the hotel guest.String (50)
TrvGuestName
NoNone
HotelGuestNumberThe number of hotel guests.Integer
TrvGuestNumber
NoNone
HotelTotalRoomNightsThe number of hotel nights.Integer
TrvNumberOfNights
NoNone
HotelTotalRoomRentThe total room rent.Real
AmountCur
NoNone
HotelTotalTaxAmountThe total tax amount for the hotel stay.Real
TaxAmountJournal
NoNone
InterCompanyCategoryIntercompany project category. It points to the project category table.String (30)
ProjCategoryId
NoProjCategory.CategoryIdNone
InterCompanyLELegal entity for an intercompany expense. It points to the legal entities table.String
TrvLegalEntity
NoCompanyInfo.DataAreaNone
KMOwnCarMileage driven, here for the employee's own car.Real
TrvMileage
NoNone
LegalEntityPoints to the legal entity (by system record ID).Int64YesCompanyInfo.RecIdNone
MerchantIdThe merchant.String (255)
TrvExpMerchantId
NoNone
MileageFromAddressThe start address of the trip.String (100)
TrvMileageAddress
NoNone
MileageToAddressThe end address of the trip.String (100)
TrvMileageAddress
NoNone
ModifiedByThe user who last changed the record. System field.String (20)
ModifiedBy
NoNone
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
NoNone
NumberOfPassengersThe number of passengers.Integer
TrvNumberOfPassengers
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PayMethodThe payment method.String
TrvPayMethodEDT
YesNone
ProjActivityNumberThe project activity number.String (50)
ProjActivityNumber
NoNone
ProjIdThe project ID.String (20)
ProjId
NoNone
ProjStatusIdProject line property.String
ProjLinePropertyId
NoNone
ReasonA free-text reason for the expense.String (-1)
Notes
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
ReferenceDataAreaIdCompany of the expense category. It is used together with the category to find it.String
DataAreaId
NoTrvCostType.dataAreaIdNone
SubCategoryRecIdReference by system record ID to a sub-category. The metadata does not name the target table.low confidenceInt64
RefRecId
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
TaxGroupThe sales tax group.String
TaxGroup
NoNone
TaxIncludedYes/No flag showing whether the amount includes tax.Enum
NoYes (enum)
NoNone
TaxItemGroupThe item sales tax group.String
TaxItemGroup
NoNone
TransactionTextAn internal note on the expense.String (60)
TransTxt
NoNone
VehicleTypeThe type of vehicle used.String (30)
TrvVehicleType
NoNone

Indexes (1)

Relations (7)

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

  • HcmWorker → HcmWorker

    Join on CreatingWorker = HcmWorker.RecId

    Many TrvExpRecurringTemplate records → exactly one HcmWorker record

  • LegalEntity → CompanyInfo

    Join on LegalEntity = CompanyInfo.RecId

    Many TrvExpRecurringTemplate records → exactly one CompanyInfo record

  • TrvCostType → TrvCostType

    Join on ReferenceDataAreaId = TrvCostType.dataAreaId, CostType = TrvCostType.CostType

    Many TrvExpRecurringTemplate records → exactly one TrvCostType record

  • DimensionAttributeValueSet → DimensionAttributeValueSet

    Join on DefaultDimension = DimensionAttributeValueSet.RecId

    Many TrvExpRecurringTemplate records → zero or one DimensionAttributeValueSet record

  • Currency → Currency

    Join on ExchangeCode = Currency.CurrencyCode

    Many TrvExpRecurringTemplate records → exactly one Currency record

  • InterCompanyLE → CompanyInfo

    Join on InterCompanyLE = CompanyInfo.DataArea

    Many TrvExpRecurringTemplate records → zero or one CompanyInfo record

  • InterCompanyCategory → ProjCategory

    Join on InterCompanyCategory = ProjCategory.CategoryId

    Many TrvExpRecurringTemplate records → zero or one ProjCategory record

Get this data out

No public entity reads from TrvExpRecurringTemplate. Its data is only reachable through the application, a custom entity or a database export.

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

Email sales@drdynamics.co.uk