Table
LeaveBuySellPolicySellTier
Buy and sell leave policy sell tier
Holds the sell 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 selling leave. It links to the policy, the leave type and an earning code.
- Table name
LeaveBuySellPolicySellTier- 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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
PolicyPoints to the buy and sell leave policy that this tier belongs to. | Int64LeaveBuySellPolicyRecId | Yes | LeaveBuySellPolicy.RecId | LeaveBuySellPolicySellTierEntity |
LeaveTypePoints to the leave type that the tier applies to. | Int64LeaveTypeRecId | Yes | LeaveType.RecId | LeaveBuySellPolicySellTierEntity |
MonthsOfServiceMonths of service a worker needs before this sell tier applies. It is also part of the tier key. | RealLeaveAmountUnsigned | No | LeaveBuySellPolicySellTierEntity | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
EarningCodePoints to the payroll earning code linked to this tier. | Int64PayrollEarningCodeRecId | No | PayrollEarningCode.RecId | LeaveBuySellPolicySellTierEntity |
MaximumAmountUpper limit on the amount of leave that can be sold under this tier. | RealLeaveAmountUnsigned | No | LeaveBuySellPolicySellTierEntity | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
RateRate used when a worker sells this type of leave. | RealLeaveAmountUnsigned | No | LeaveBuySellPolicySellTierEntity | |
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 | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
UseFullTimeEquivalencyYes/No flag. When Yes, the worker's full-time equivalency from their position is used to check the amount sold. | EnumNoYes (enum) | No | LeaveBuySellPolicySellTierEntity |
Indexes (1)
PolicyLeaveTierIdxReplacement keyPolicy,LeaveType,MonthsOfServiceUnique, alternate key.
Relations (3)
Each relation joins LeaveBuySellPolicySellTier to another table on the fields shown.
LeaveBuySellPolicy→LeaveBuySellPolicyJoin on
Policy = LeaveBuySellPolicy.RecIdMany LeaveBuySellPolicySellTier records → exactly one LeaveBuySellPolicy record
LeaveType→LeaveTypeJoin on
LeaveType = LeaveType.RecIdMany LeaveBuySellPolicySellTier records → exactly one LeaveType record
PayrollEarningCode→PayrollEarningCodeJoin on
EarningCode = PayrollEarningCode.RecIdMany LeaveBuySellPolicySellTier records → zero or one PayrollEarningCode record
Get this data out
Tables are not exposed directly. These public entities read from LeaveBuySellPolicySellTier; use one of them in Power BI, Power Platform or a data management project.
LeaveBuySellPolicySellTierEntity· 7 fields from this table
Need help with LeaveBuySellPolicySellTier in a report, an integration or a migration? Talk to Dr Dynamics.