Geeting negative values in Salary Slip

Hi all,

I’m facing an issue while generating the salary for a month where all days are marked as Leave Without Pay (LOP). In this scenario, the Provident Fund amount—which is part of both the earnings and deductions sections on the salary slip—is showing a negative value.

Has anyone encountered this before? How can I prevent or handle negative Provident Fund values when the entire month is LOP?

Thanks in advance for your help!

Hi Abai,

You can either add a formula-based calculation for the PF component or directly apply a condition to control when PF should be calculated. For example, if there is LOP for the entire month, the system should check the Basic Amount — and only if it meets the required condition, PF will be calculated. Otherwise, it should return 0.

refer the Snapshot.

1 Like

This issue happened because you enabled the “Depends on Payment Days” option on the Salary Component or in the Salary Slip.

If PF should not be calculated based on payment days, kindly uncheck the “Depends on Payment Days” checkbox and try again — this will prevent negative values from appearing.

Alternatively, you can add a condition in the Salary Component:

python

CopyEdit

payment_days != 0

With this condition, the system will include the component only if payment days are not zero. If the payment days are zero, the component will not appear in the Salary Slip.