Table
TrvPayMethod
Payment method
Lists payment methods for expenses. The key is the payment method code. Each one records who owns the cost, the offset account type and the offset account, and links to a ledger dimension combination.
- Table name
TrvPayMethod- Module
Expense- Table group
Reference- Table type
Regular- Data per company
Yes- Configuration key
Trv- Primary index
PayMethodIdx- Replacement key
None- Key fields
PayMethod- Model
Foundation
Fields (12)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
PayMethodCode that identifies the payment method. | StringTrvPayMethodEDT | Yes | TrvPayMethodEntity | |
AutomaticPaymentMarks a payment method that is used for imports only. | EnumNoYesIdNoYes (enum) | No | TrvPayMethodEntity | |
CostOwnerWho bears the expense: the company, the employee, or another customer. | EnumTrvCostownerEDTTrvCostOwner (enum) | No | TrvPayMethodEntity | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
OffsetLedgerDimensionOffset account and dimensions for this payment method. It points to a dimension combination record. | Int64DimensionDynamicDefaultAccount | No | DimensionAttributeValueCombination.RecId | TrvPayMethodEntity |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PayedByTxtShort description of the payment method. | String (30)TrvPayedByTxt | No | TrvPayMethodEntity | |
PostMethodType of offset account: none, worker, ledger, bank or vendor. | EnumTrvPostmethodEDTTrvPostMethod (enum) | Yes | TrvPayMethodEntity | |
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 |
Indexes (2)
PayMethodIdxPrimary indexUnique, alternate key.
SetOffLedgerDimensionIdxNot unique.
Relations (1)
Each relation joins TrvPayMethod to another table on the fields shown.
OffsetfLedgerDimension→DimensionAttributeValueCombinationJoin on
OffsetLedgerDimension = DimensionAttributeValueCombination.RecIdMany TrvPayMethod records → zero or one DimensionAttributeValueCombination record
Get this data out
Tables are not exposed directly. These public entities read from TrvPayMethod; use one of them in Power BI, Power Platform or a data management project.
TrvPayMethodEntity· 6 fields from this table
Need help with TrvPayMethod in a report, an integration or a migration? Talk to Dr Dynamics.