For example you have given Cash of Rs1000/- to Mr A as advance for an expenses, he has not given the account of Cash, so you have deducted from salary .
Advance to A A/c Dr 1000 To Cash A/c Cr. 1000 ( paid to Mr A)
Adjusted against salary.
Salary A/c Dr 15000 To Salary Payable A/c Cr 14000 To Advance to A A/c Cr. 1000 ( Advance given adjusted against salary)