Table

TrvCostType

Expense category

Holds expense categories, identified by the category code. It stores a description, expense type, main account, default payment method, sales tax groups and statistics group. It also holds flags such as inactive, import only and itemization mandatory.

Table name
TrvCostType
Module
Expense
Table group
Reference
Table type
Regular
Data per company
Yes
Configuration key
Trv
Primary index
CostType
Replacement key
None
Key fields
CostType
Model
Foundation

Fields (21)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
CostTypeCode of the expense category. Points to the category table.String (30)
TrvCostTypeEDT
YesCategoryTable.CategoryIdTrvExpenseCategoryEntityProjExpenseCategoryExportEntity
AccountTypeType of account used for the category, such as ledger or vendor.Enum
LedgerJournalACType (enum)
NoTrvExpenseCategoryEntity
CostTxtDescription of the expense category.String (60)
TrvCostTxt
NoTrvExpenseCategoryEntityProjExpenseCategoryExportEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
ExpenseEntryAgentDefaultTaxSubCategoryDefault tax subcategory for the category. Points to an expense subcategory.Int64
TrvExpSubCategoryEDT
NoTrvExpSubCategory.RecIdTrvExpenseCategoryEntity
ExpTypeKind of expense, such as per diem, mileage, airline or car rental.Enum
TrvExpTypeEDT
TrvExpType (enum)
YesTrvExpenseCategoryEntityProjExpenseCategoryExportEntity
IsCommonYes/No marker for a commonly used category.Enum
NoYes (enum)
NoTrvExpenseCategoryEntity
IsGovernmentYes/No marker to include the category in anti-corruption checks.Enum
NoYes (enum)
NoNone
isImportOnlyYes/No marker for a category that is used only for imports.Enum
NoYes (enum)
NoTrvExpenseCategoryEntity
IsInactiveYes/No marker for an inactive category.Enum
NoYesId
NoYes (enum)
NoTrvExpenseCategoryEntityProjExpenseCategoryExportEntity
IsItemizationMandatoryYes/No marker showing that itemization is required for the category.Enum
NoYesId
NoYes (enum)
NoTrvExpenseCategoryEntity
LedgerDimensionMain account for the category. Points to a dimension combination.Int64
LedgerDimensionDefaultAccount
NoDimensionAttributeValueCombination.RecIdTrvExpenseCategoryEntity
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
StdPaiMethodDefault payment method. Points to the payment methods.String
TrvStdPaiMethod
YesTrvPayMethod.PayMethodTrvExpenseCategoryEntity
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
TaxItemGroupItem sales tax group. Points to the item sales tax groups.String
TaxItemGroup
NoTaxItemGroupHeading.TaxItemGroupTrvExpenseCategoryEntity
TaxItemGroupIfBilledToEmployeeAlternate item sales tax group. Points to the item sales tax groups.String
TaxItemGroup
NoTaxItemGroupHeading.TaxItemGroupTrvExpenseCategoryEntity
TrvCostTypeStatisticsIdStatistics group of the category. Points to the statistics groups.String (32)
TrvCostTypeStatisticsId
NoTrvCostTypeStatistics.TrvCostTypeStatisticsIdTrvExpenseCategoryEntity

Indexes (2)

Relations (7)

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

  • CategoryTable → CategoryTable

    Join on CostType = CategoryTable.CategoryId

    Zero or one TrvCostType record → exactly one CategoryTable record

  • LedgerDimension → DimensionAttributeValueCombination

    Join on LedgerDimension = DimensionAttributeValueCombination.RecId

    Many TrvCostType records → zero or one DimensionAttributeValueCombination record

  • PayMethod → TrvPayMethod

    Join on StdPaiMethod = TrvPayMethod.PayMethod

    Many TrvCostType records → exactly one TrvPayMethod record

  • TaxItemGroupHeading → TaxItemGroupHeading

    Join on TaxItemGroup = TaxItemGroupHeading.TaxItemGroup

    Many TrvCostType records → zero or one TaxItemGroupHeading record

  • TaxItemGroupHeadingBilledToEmployee → TaxItemGroupHeading

    Join on TaxItemGroupIfBilledToEmployee = TaxItemGroupHeading.TaxItemGroup

    Many TrvCostType records → zero or one TaxItemGroupHeading record

  • TrvCostTypeStatistics → TrvCostTypeStatistics

    Join on TrvCostTypeStatisticsId = TrvCostTypeStatistics.TrvCostTypeStatisticsId

    Many TrvCostType records → zero or one TrvCostTypeStatistics record

  • DefaultTaxSubCategory → TrvExpSubCategory

    Join on ExpenseEntryAgentDefaultTaxSubCategory = TrvExpSubCategory.RecId, TrvExpSubCategory.IsInactive = NoYes::No

    Many TrvCostType records → zero or one TrvExpSubCategory record

Get this data out

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

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

Email sales@drdynamics.co.uk