Table

LeaveBankTransaction

Leave and absence bank transaction

Holds leave bank transactions for workers, one line per movement. Each line has a worker, leave type, plan, date, amount and transaction type, such as accrual, request, grant or balance adjustment. It can link to an accrual suspension and a reason code.

Table name
LeaveBankTransaction
Module
Cross-module and platform
Table group
Miscellaneous
Table type
Regular
Data per company
Yes
Configuration key
None
Primary index
None
Replacement key
None
Key fields
None
Model
Leave

Fields (19)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
AccrualSuspensionThe accrual suspension linked to the transaction. Points to the accrual suspension record.Int64
LeaveAccrualSuspensionRecId
NoLeaveAccrualSuspension.RecIdNone
AmountSigned amount of leave in the transaction.Real
LeaveAmountSigned
NoLeaveBankTransactionV2EntityLeaveBankTransactionEntityPayIntV1LeaveBankTransactionEntity
CommentFree-text comment on the transaction.String (-1)
LeaveRequestComment
NoLeaveBankTransactionV2EntityLeaveBankTransactionEntityPayIntV1LeaveBankTransactionEntity
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
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
HalfDayDefinitionShows whether the transaction covers no half day, the first half day or the second half day.Enum
LeaveHalfDayDefinition (enum)
NoLeaveBankTransactionV2EntityLeaveBankTransactionEntityPayIntV1LeaveBankTransactionEntity
LeavePlanThe leave plan of the transaction. Points to the leave plan record.Int64
LeavePlanRecId
NoLeavePlan.RecIdLeaveBankTransactionV2EntityLeaveBankTransactionEntityPayIntV1LeaveBankTransactionEntity
LeaveTypeThe leave type of the transaction. Points to the leave type record.Int64
LeaveTypeRecId
YesLeaveType.RecIdLeaveBankTransactionV2EntityLeaveBankTransactionEntityPayIntV1LeaveBankTransactionEntityand 3 more
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
ReasonCodeReason for the transaction. Points to the reason code record.Int64
HcmReasonCodeRecId
NoHcmReasonCode.RecIdLeaveBankTransactionV2EntityLeaveBankTransactionEntityPayIntV1LeaveBankTransactionEntity
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
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
TransactionDateDate of the transaction.Date
LeaveDate
YesLeaveBankTransactionV2EntityLeaveBankTransactionEntityPayIntV1LeaveBankTransactionEntityand 4 more
TransactionNumberLine number of the transaction.Real
LineNum
NoLeaveBankTransactionV2EntityLeaveBankTransactionEntityPayIntV1LeaveBankTransactionEntityand 1 more
TransactionTypeKind of movement, such as accrual, request, grant, adjustment, expiration or buy request.Enum
LeaveTransactionType (enum)
YesLeaveBankTransactionV2EntityLeaveBankTransactionEntityPayIntV1LeaveBankTransactionEntityand 1 more
WorkerThe worker the transaction belongs to. Points to the worker record.Int64
HcmWorkerRecId
YesHcmWorker.RecIdLeaveBankTransactionV2EntityLeaveBankTransactionEntityPayIntV1LeaveBankTransactionEntityand 2 more

Indexes (3)

Relations (5)

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

  • LeaveType → LeaveType

    Join on LeaveType = LeaveType.RecId

    Many LeaveBankTransaction records → exactly one LeaveType record

  • HcmWorker → HcmWorker

    Join on Worker = HcmWorker.RecId

    Many LeaveBankTransaction records → exactly one HcmWorker record

  • LeavePlan → LeavePlan

    Join on LeavePlan = LeavePlan.RecId

    Many LeaveBankTransaction records → zero or one LeavePlan record

  • LeaveAccrualSuspension → LeaveAccrualSuspension

    Join on AccrualSuspension = LeaveAccrualSuspension.RecId

    Many LeaveBankTransaction records → zero or one LeaveAccrualSuspension record

  • ReasonCode → HcmReasonCode

    Join on ReasonCode = HcmReasonCode.RecId

    Many LeaveBankTransaction records → zero or one HcmReasonCode record

Get this data out

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

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

Email sales@drdynamics.co.uk