Table

TrvPBSMaindata

Credit card

Holds credit card transactions imported for employees. Each record has the merchant, card, amounts, category and the linked worker. It also shows whether the transaction was processed or added to an expense report. It links to currency, worker, expense category, payment method and expense report.

Table name
TrvPBSMaindata
Module
Expense
Table group
WorksheetLine
Table type
Regular
Data per company
Yes
Configuration key
TrvElectronicPayment
Primary index
RecId
Replacement key
None
Key fields
None
Model
Foundation

Fields (46)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
AmountCurrAmount in the transaction currency.Real
AmountCur
YesTrvCreditCardTransactionEntity
AmountLocalAmount in the local currency.Real
AmountCur
NoTrvCreditCardTransactionEntity
BusinessNameName of the merchant.String (30)
TrvPBSBusinessName
NoTrvCreditCardTransactionEntity
CardNumberIdentifier of the card.String (40)
TrvWorkerPaymethodID
NoTrvCreditCardTransactionEntity
CardNumberNIKSUnique ID of the card.String (16)
TrvCardNIKS
NoTrvCreditCardTransactionEntity
CardTypeType of credit card.String (32)
TrvCreditCardType
YesTrvCreditCardTransactionEntity
CatCodeCategory code of the transaction.String
TrvCatCodeNoEDT
NoTrvCreditCardTransactionEntity
CatCodesDescDescription of the category code.String (25)
TrvCatCodeDescriptionEDT
NoTrvCreditCardTransactionEntity
CCTransUniqueIDUnique ID of the credit card transaction.String (32)
TrvCCTransUniqueID
NoTrvCreditCardTransactionEntity
CostTypeExpense category of the transaction. It points to an expense category.String (30)
TrvCostTypeEDT
NoTrvCostType.CostTypeTrvCreditCardTransactionEntity
CountryCountry or region of the merchant.String (25)
TrvPbsCountry
NoTrvCreditCardTransactionEntity
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
CreatedTransactionIdA system number for the database transaction that created the record. System field.Int64
CreatedTransactionId
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
EmpPayMethodRecIdEmployee payment method record linked to the transaction.Int64
RefRecId
NoTrvEmpPaymethod.RecIdTrvCreditCardTransactionEntity
ExchCodeCurrency of the transaction amount. It points to a currency.String (3)
CurrencyCode
YesCurrency.CurrencyCodeTrvCreditCardTransactionEntity
ExchCodeLocalLocal currency of the transaction. It points to a currency.String (3)
CurrencyCode
NoCurrency.CurrencyCodeTrvCreditCardTransactionEntity
MerchantCategoryCodeCode that classes the merchant's type of business.String
TrvMerchantCategoryCode
NoTrvCreditCardTransactionEntity
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
ModifiedTransactionIdA system number for the database transaction that last changed the record. System field.Int64
ModifiedTransactionId
NoNone
NameName of the cardholder.String (60)
Name
NoTrvCreditCardTransactionEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PaymethodPayment method used for the transaction. It points to a payment method.String
TrvPayMethodEDT
NoTrvPayMethod.PayMethodTrvCreditCardTransactionEntity
PostedWhether the transaction has been processed for payment.Enum
NoYesId
NoYes (enum)
NoTrvCreditCardTransactionEntity
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
ReferenceKey value that identifies the transaction record.String (196)
TrvPBSKey
NoTrvCreditCardTransactionEntity
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
TownCity of the merchant.String (13)
TrvPBSTown
NoTrvCreditCardTransactionEntity
TransDateDate of the transaction.Date
TrvTransDate
YesTrvCreditCardTransactionEntity
TransferredWhether the transaction has been added to an expense report.Enum
NoYesId
NoYes (enum)
NoTrvCreditCardTransactionEntity
TravelNoNumber of the expense report the transaction was added to.String (20)
TrvExpNumber
NoTrvCreditCardTransactionEntity
UserField1User-defined text field.String (50)
TrvPBSUserField
NoNone
UserField2User-defined text field.String (50)
TrvPBSUserField
NoNone
UserField3User-defined text field.String (50)
TrvPBSUserField
NoNone
UserField4User-defined text field.String (50)
TrvPBSUserField
NoNone
UserField5User-defined text field.String (50)
TrvPBSUserField
NoNone
UserField6User-defined text field.String (50)
TrvPBSUserField
NoNone
UserField7User-defined text field.String (50)
TrvPBSUserField
NoNone
UserField8User-defined text field.String (50)
TrvPBSUserField
NoNone
UserField9User-defined text field.String (50)
TrvPBSUserField
NoNone
UserFieldLongUser-defined text field that allows longer text.String (255)
TrvPBSUserFieldLong
NoNone
WorkerEmployee who owns the transaction. It points to a worker record.Int64
TrvHcmWorkerRecId
NoHcmWorker.RecIdTrvCreditCardTransactionEntity

Indexes (8)

Relations (7)

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

  • CostType → TrvCostType

    Join on CostType = TrvCostType.CostType

    Many TrvPBSMaindata records → zero or one TrvCostType record

  • Currency → Currency

    Join on ExchCode = Currency.CurrencyCode

    Many TrvPBSMaindata records → exactly one Currency record

  • EmpPaymethod → TrvEmpPaymethod

    Join on EmpPayMethodRecId = TrvEmpPaymethod.RecId

    Many TrvPBSMaindata records → zero or one TrvEmpPaymethod record

  • LocalCurrency → Currency

    Join on ExchCodeLocal = Currency.CurrencyCode

    Many TrvPBSMaindata records → zero or one Currency record

  • TrvExpTable → TrvExpTable

    Join on TravelNo = TrvExpTable.ExpNumber

    Many TrvPBSMaindata records → zero or one TrvExpTable record

  • TrvHcmWorker → HcmWorker

    Join on Worker = HcmWorker.RecId

    Many TrvPBSMaindata records → zero or one HcmWorker record

  • TrvPaymethod → TrvPayMethod

    Join on Paymethod = TrvPayMethod.PayMethod

    Many TrvPBSMaindata records → zero or one TrvPayMethod record

Get this data out

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

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

Email sales@drdynamics.co.uk