We need assistance for payroll with payment days when using payroll entry.
We hvae social security fund 10% to be deducted from salary and is based on gross_pay.
So, we have defined a formula
It seems that component formula based on gross_pay is not considering the lwp/payment_days correctly when salary slips are created from Payroll entry. It is giving wierd results that we can’t understand the reason.
It used to work well in v11.1.36 but has stopped behaving like it used to do earlier. I tried to see the difference from github, but can’t figure out what is affecting it.
If we update the salary slip individually then it correctly calculates the components with gross_pay. Even if we do a bulk edit of a field e.g. Letter Head and set the value to the same value, it recalculates the component amounts correctly based on correct gross_pay.
Attached is the sample outcome and the configuration of salary component in the structure.
The salary structure is: