Employee advance deduction from salary?

If I give advance to any employee, then how can I deduct advance from employee salary?
Hope get my point…

Thank you…

how did u create the advance?