This content has been marked as final. Show 11 replies
I shall reframe the question. The actual requirement is there is an X element which has to be processed in the next payroll.
I mean the X element has to be run always with the next payroll.
Nov-12 payroll process should include the process results for Oct-12 X element's results.
Please bear in mind that none of the calculation is done manually that is being calculated internally. So I cannot edit the fast formula logic.
I only need to look out for a way to attach this X element to n+1 Payroll period.
For the Nov-12 payroll OCt-12 results would be attacged for X element.
For the Dec-12 payroll Nov-12 results would be attached for X element
How can I achieve this?
Have never seen any requirement like this before. Can I know what functionality are you implementing here ?
There are a couple of ways for achieving this -
1. When you run the current month, in one of the fast formulas where you calculate the value for next month, call a formula function which would insert a non-recurring element entry into the next period for the assignment. You can use the Element entry API pay_element_entry_api.create_element_entry for creating the element entry.
2. You can create an information element say INF_Element with an input value Amount and pass the calculated value into this element input value.
For current month, this will just store the value in the information element.
Attach a recurring element for the employee. The formula attached to this element will check if the previous month had a value for INF_Element and process it for current month.
3. You can also play with Balances(try to use _ITD) to get the last month value alone(with a cumulative add/subtract logic) and use this in the current month.
Thanks for the reply, Vignesh.Your options are worthy considering
But the client doesnt want that element to be processed at all in the current month.
And I cannot play around with the element fast formula as that is happening as a part of the seeded process.
The exact issue is unauthorized leaves have to be deducted in the next month considering this month's leave dates.
It should come as something like retro element in the next month every payroll period..
Can we think on those lines and arrive at a solution?
not sure if I got your message right, Giuseppe.Could youkindly elaborate
But my requirement is to run a particular element every time in the next payroll.
it is something like a recurring element but its results are attached in the next pay period based on the calculations of the current pay period..