Negative Net Pay Salary Slip

Hello Everyone,
An employee has taken an advance which is more than his monthly salary, now the deduction in the salary slip is more than the gross pay.
I have attached screenshot below

And the net pay is shown Negative have a look on screenshot below

Error Screenshot attached below

How to manage Negative salary?

Thanks!