Table

RPayAverageEarnEmplPeriodTable

Employee average earnings calculation

Holds the result of an average earnings calculation for one employee and period. It combines the calculation method settings with data for vacations, sick lists and business trips, including dates, recalculation details and the amount to pay. It has no defined key and links to employees, calculation methods, pay sheets, relatives, customers and vendors.

Table name
RPayAverageEarnEmplPeriodTable
Module
Obsolete
Table group
Transaction
Table type
Regular
Data per company
Yes
Configuration key
RpayAverageEarn
Primary index
RecId
Replacement key
None
Key fields
None
Model
Foundation

Fields (64)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
ActuallyFundCounter used as the base of the calculation.String
RPayCounterUnit
NoRPayCounterTable.CounterUnitNone
ActuallyTimeGroupCodeTime group used for time actually worked.String
RpayTimeGroupCode
NoRPayTimeGroupTable.TimeGroupNone
AddPaymFromPaymFundShows whether an additional payment comes from the wage fund (yes or no).Enum
RPayAddPaymFromPaymFund
NoYes (enum)
NoNone
AmountAverage earnings amount; currency not stated in the metadata.Real
RPayAmount
NoNone
ApplyRestrictionShows whether a restriction is allowed (yes or no).Enum
NoYes (enum)
NoNone
AverageEarnCalcPeriodPeriod for which the average earnings are calculated.Date
ReportPeriod_RU
NoNone
averageEarnCodeTypeKind of calculation: others, vacations, sick payment or business trips.Enum
RPayAverageEarnCodeType (enum)
NoNone
AverageFundCounter used as the average earnings base.String
RPayCounterUnit
NoRPayCounterTable.CounterUnitNone
AverageTimeGroupCodeTime group used for the averaged time.String
RpayTimeGroupCode
NoRPayTimeGroupTable.TimeGroupNone
BonusFundCounter used as the base for bonuses.String
RPayCounterUnit
NoRPayCounterTable.CounterUnitNone
BusinessTripRecordTypeWhether the record is a business trip or a break in a business trip.Enum
RPayBusinessTripRecordType (enum)
NoNone
BusinessTripTypeIdType of business trip, from the business trip types.String
RHRMBusinessTripTypeId
NoRHRMBusinessTripType.BusinessTripTypeIdNone
CalcBonusInProportionShows whether bonuses are calculated in proportion (yes or no).Enum
RPayCalcBonusInProportion
NoYes (enum)
NoNone
CalcByFundCode of a pay rate that sets calculation via funds.low confidenceString
RPayRateCode
NoRPayRateTable.PayRateNone
CalcByMROTShows whether the calculation uses the minimum wage (MROT) (yes or no).Enum
NoYesId
NoYes (enum)
NoNone
CalcByPrevYearsShows whether the calculation uses funds from previous years (yes or no).Enum
NoYesId
NoYes (enum)
NoNone
CorrectedPeriodPeriod that was corrected.Date
RPayCorrectedPeriod
NoNone
CorrectedSickListIdNumber of the sick list that is reversed by this adjustment.String (14)
RPaySickListId
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DayNumberNumber of days.Integer
Days
NoNone
EmplIdEmployee that the calculation is for.String (20)
RHRMEmplId
YesRHRMEmplTable.EmployeeIdNone
EndDateEnd date of the period.Date
EndDate
NoNone
FamilyRecIdReference to a relative record, used for example for care of a relative.Int64
RefRecId
NoRHRMVirtualNetworkFamily.RecIdNone
HospitalCode of the customer or vendor account for the medical institution.String (20)
CustVendAC
NoCustTable.AccountNumVendTable.AccountNumNone
HospitalTypeWhether the institution is held as a customer or a vendor.Enum
RPayHospitalType (enum)
NoNone
IncludedShows whether the amount is added to salary (yes or no).Enum
NoYes (enum)
NoNone
LimitByMROTShows whether the amount is reduced to the minimum wage (MROT) (yes or no).Enum
NoYesId
NoYes (enum)
NoNone
MonthForCalcCode of a pay rate that sets the number of months used in the calculation.low confidenceString
RPayRateCode
NoRPayRateTable.PayRateNone
MROTAmountAeDaily payment based on the minimum wage (MROT); currency not stated in the metadata.Real
RPayAmount
NoNone
MROTEndDateEnd date of the treatment violation period.Date
TransDate
NoNone
MROTStartDateStart date of the treatment violation period.Date
TransDate
NoNone
NonAppearanceTimeGroupCodeTime group used for absences from work.String
RpayTimeGroupCode
NoRPayTimeGroupTable.TimeGroupNone
NumOfWorkedMonthsNumber of months worked.Real
RPayDayHour
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PartTimeCoefficientFactor for part-time work.Real
Factor
NoNone
PayPeriodPeriod for which the calculation is made.Date
ReportPeriod_RU
NoNone
PrevBusinessTripStartDateStart date of a related earlier business trip.Date
StartDate
NoNone
PrevPaySickListIdNumber of the previous sick list.String (14)
RPaySickListId
NoNone
PrevVacationStartDateStart date of an associated vacation.Date
StartDate
NoNone
RecalcByPrevYearsShows whether the years used for the calculation were changed by application (yes or no).low confidenceEnum
NoYesId
NoYes (enum)
NoNone
RecalcSickListIdNumber of the sick list that was recalculated.String (14)
RPaySickListId
NoNone
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
RiseFactorCode of a pay rate used as a step-up ratio.String
RPayRateCode
NoRPayRateTable.PayRateNone
RPayAverageEarnCodeCode of the average earnings calculation method used.String
RPayAverageEarnCode
YesRPayAverageEarnTable.RPayAverageEarnCodeNone
RpayAverageFullMonthCalcTypeHow a full month is calculated: according to calendar or average value.Enum
RPayAverageFullMonthCalcType (enum)
NoNone
RPayAverageTimeCalcTypeHow a short month is calculated: summary, calendar or by coefficient.Enum
RPayAverageTimeCalcType (enum)
NoNone
RPayBonusAccountingCriterionCriterion for bonus accounting: maximum, minimum, first or last.Enum
RPayBonusAccountingCriterion (enum)
NoNone
RPayDayHourCalcWhether the calculation is by days or by hours.Enum
RPayDayHourCalc (enum)
NoNone
RpayIllTypeType of incapacity, such as illness, care of sick, maternity leave, injury or child care.Enum
RPayIllType (enum)
NoNone
RpaySickListIdSick list number.String (14)
RPaySickListId
NoNone
RpaySickListTypeBasis of the calculation: by salary rate or by actual salary.Enum
RPaySickListType (enum)
NoNone
RPayWeekDurationLength of the working week: 5, 6 or 7 days.Enum
RPayWeekDuration (enum)
NoNone
ScheduleTimeGroupCodeTime group used for time according to the schedule.String
RpayTimeGroupCode
NoRPayTimeGroupTable.TimeGroupNone
SheetTableRecidReference to the pay-sheet record.Int64
RefRecId
NoRPaySheetTable.RecIdNone
SickListRecalcNumberNumber of the sick list recalculation.Integer
RPaySickListRecalcNumber
NoNone
SickListRecalcPeriodPeriod of the sick list recalculation.Date
ReportPeriod_RU
NoNone
SourceSickListIdSick list number of the source sick list.String (14)
RPaySickListId
NoNone
StartDateStart date of the period.Date
StartDate
NoNone
SumOnHandAmount to be paid; currency not stated in the metadata.Real
RPayAmount
NoNone
SumOnHandBlockedShows whether the amount to be paid is blocked (yes or no).Enum
NoYes (enum)
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
VacationRecordTypeWhether the record is a vacation, a break in a vacation or compensation.Enum
RPayVacationRecordType (enum)
NoNone
VacationTypeIdType of vacation, from the vacation types.String
RHRMVacationTypeId
NoRHRMVacationType.VacationTypeIdNone

Indexes (1)

Relations (18)

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

  • HospitalCust → CustTable

    Join on Hospital = CustTable.AccountNum, HospitalType = RPayHospitalType::Cust

    Many RPayAverageEarnEmplPeriodTable records → zero or one CustTable record

  • HospitalVend → VendTable

    Join on HospitalType = RPayHospitalType::Vend, Hospital = VendTable.AccountNum

    Many RPayAverageEarnEmplPeriodTable records → zero or one VendTable record

  • RHRMBusinessTripType → RHRMBusinessTripType

    Join on BusinessTripTypeId = RHRMBusinessTripType.BusinessTripTypeId

    Many RPayAverageEarnEmplPeriodTable records → exactly one RHRMBusinessTripType record

  • RHRMEmplTable → RHRMEmplTable

    Join on EmplId = RHRMEmplTable.EmployeeId

    Zero or one RPayAverageEarnEmplPeriodTable record → exactly one RHRMEmplTable record

  • RHRMVacationType → RHRMVacationType

    Join on VacationTypeId = RHRMVacationType.VacationTypeId

    Many RPayAverageEarnEmplPeriodTable records → exactly one RHRMVacationType record

  • RHRMVirtualNetworkFamily → RHRMVirtualNetworkFamily

    Join on FamilyRecId = RHRMVirtualNetworkFamily.RecId

    Many RPayAverageEarnEmplPeriodTable records → exactly one RHRMVirtualNetworkFamily record

  • RPayAverageEarnTable → RPayAverageEarnTable

    Join on RPayAverageEarnCode = RPayAverageEarnTable.RPayAverageEarnCode

    One or more RPayAverageEarnEmplPeriodTable records → exactly one RPayAverageEarnTable record

  • RPayCounterTable_ActuallyFund → RPayCounterTable

    Join on RPayCounterTable.LineType = RPayCtypeType::BaseTotal, RPayCounterTable.CounterType = RPayCounterType::Fund, ActuallyFund = RPayCounterTable.CounterUnit

    Many RPayAverageEarnEmplPeriodTable records → exactly one RPayCounterTable record

  • RPayCounterTable_AverageFund → RPayCounterTable

    Join on RPayCounterTable.LineType = RPayCtypeType::BaseTotal, RPayCounterTable.CounterType = RPayCounterType::Fund, AverageFund = RPayCounterTable.CounterUnit

    Many RPayAverageEarnEmplPeriodTable records → exactly one RPayCounterTable record

  • RPayCounterTable_BonusFund → RPayCounterTable

    Join on RPayCounterTable.LineType = RPayCtypeType::BaseTotal, RPayCounterTable.CounterType = RPayCounterType::Fund, BonusFund = RPayCounterTable.CounterUnit

    Many RPayAverageEarnEmplPeriodTable records → exactly one RPayCounterTable record

  • RPayRateTable → RPayRateTable

    Join on RiseFactor = RPayRateTable.PayRate

    Many RPayAverageEarnEmplPeriodTable records → exactly one RPayRateTable record

  • RPayRateTable_CalcByFund → RPayRateTable

    Join on CalcByFund = RPayRateTable.PayRate

    Many RPayAverageEarnEmplPeriodTable records → exactly one RPayRateTable record

  • RPayRateTable_MonthForCalc → RPayRateTable

    Join on MonthForCalc = RPayRateTable.PayRate

    Many RPayAverageEarnEmplPeriodTable records → exactly one RPayRateTable record

  • RPaySheetTable → RPaySheetTable

    Join on SheetTableRecid = RPaySheetTable.RecId

    Many RPayAverageEarnEmplPeriodTable records → exactly one RPaySheetTable record

  • RPayTimeGroupTable → RPayTimeGroupTable

    Join on NonAppearanceTimeGroupCode = RPayTimeGroupTable.TimeGroup

    Many RPayAverageEarnEmplPeriodTable records → exactly one RPayTimeGroupTable record

  • RPayTimeGroupTable_Actually → RPayTimeGroupTable

    Join on ActuallyTimeGroupCode = RPayTimeGroupTable.TimeGroup

    Many RPayAverageEarnEmplPeriodTable records → exactly one RPayTimeGroupTable record

  • RPayTimeGroupTable_Average → RPayTimeGroupTable

    Join on AverageTimeGroupCode = RPayTimeGroupTable.TimeGroup

    Many RPayAverageEarnEmplPeriodTable records → exactly one RPayTimeGroupTable record

  • RPayTimeGroupTable_Schedule → RPayTimeGroupTable

    Join on ScheduleTimeGroupCode = RPayTimeGroupTable.TimeGroup

    Many RPayAverageEarnEmplPeriodTable records → exactly one RPayTimeGroupTable record

Get this data out

No public entity reads from RPayAverageEarnEmplPeriodTable. Its data is only reachable through the application, a custom entity or a database export.

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

Email sales@drdynamics.co.uk