Hi,
I have a requirement to show the values of the view "PayrollAccrualTransactionsInquiry" on another form which is having HCMWorker and HCMPosition.
However I do not find any direct relation on the related View and am not sure what logic should be kept on the display method to pass the worker id and get the values of the view.
Can someone please share what relation needs to be specified to get values from the view "PayrollAccrualTransactionsInquiry" in case we have values from tables. HCMWorker and HCMPosition..
The view is used in this form. Payroll > Inquiries and reports > Benefit accrual transactions
Thanks,
VK
As you can see in the form you will be having transaction date.
So I think whenever an pay statement is created for employee benefit accrual will be calculated and accrual amount will be shown in the inquiry form you said.
Benefit accrual id will be mapped against the worker.
You can get the total accrual amount for the worker by adding aggregate function like sum.
Thanks,
Girish S.
hi Girish,
Thanks for the quick reply.
The problem is that it shows multiple records for the same worker ID and i think it's because there are multiple Accruals shown against a worker.
Is the benefit accrual plan setup somewhere to get the values from or it is setup which can be changed anytime.
Hi vicky1234,
"PayrollAccrualTransactionsView" has a field named Worker - You can relate HcmWorker.RecId == PayrollAccrualTransactionsView.Worker.
This will return accural trasaction against the worker given.
Thanks,
Girish S.
André Arnaud de Cal...
291,979
Super User 2025 Season 1
Martin Dráb
230,848
Most Valuable Professional
nmaenpaa
101,156