Table

LeaveBuySellPolicyBuyTier

Buy and sell leave policy buy tier

Holds the buy tiers of a buy and sell leave policy. Each tier is set for one leave type and a months-of-service threshold, and it sets the rate and a maximum amount for buying leave. It links to the policy, the leave type and an earning code.

Table name
LeaveBuySellPolicyBuyTier
Module
Cross-module and platform
Table group
Miscellaneous
Table type
Regular
Data per company
Yes
Configuration key
None
Primary index
None
Replacement key
PolicyLeaveTierIdx
Key fields
Policy, LeaveType, MonthsOfService
Model
Leave

Fields (12)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
PolicyPoints to the buy and sell leave policy that this tier belongs to.Int64
LeaveBuySellPolicyRecId
YesLeaveBuySellPolicy.RecIdLeaveBuySellPolicyBuyTierEntity
LeaveTypePoints to the leave type that the tier applies to.Int64
LeaveTypeRecId
YesLeaveType.RecIdLeaveBuySellPolicyBuyTierEntity
MonthsOfServiceMonths of service a worker needs before this buy tier applies. It is also part of the tier key.Real
LeaveAmountUnsigned
NoLeaveBuySellPolicyBuyTierEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
EarningCodePoints to the payroll earning code linked to this tier.Int64
PayrollEarningCodeRecId
NoPayrollEarningCode.RecIdLeaveBuySellPolicyBuyTierEntity
MaximumAmountUpper limit on the amount of leave that can be bought under this tier.Real
LeaveAmountUnsigned
NoLeaveBuySellPolicyBuyTierEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
RateRate used when a worker buys this type of leave.Real
LeaveAmountUnsigned
NoLeaveBuySellPolicyBuyTierEntity
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
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
UseFullTimeEquivalencyYes/No flag. When Yes, the worker's full-time equivalency from their position is used to check the amount bought.Enum
NoYes (enum)
NoLeaveBuySellPolicyBuyTierEntity

Indexes (1)

Relations (3)

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

  • LeaveBuySellPolicy → LeaveBuySellPolicy

    Join on Policy = LeaveBuySellPolicy.RecId

    Many LeaveBuySellPolicyBuyTier records → exactly one LeaveBuySellPolicy record

  • LeaveType → LeaveType

    Join on LeaveType = LeaveType.RecId

    Many LeaveBuySellPolicyBuyTier records → exactly one LeaveType record

  • PayrollEarningCode → PayrollEarningCode

    Join on EarningCode = PayrollEarningCode.RecId

    Many LeaveBuySellPolicyBuyTier records → zero or one PayrollEarningCode record

Get this data out

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

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

Email sales@drdynamics.co.uk