When you pay out the security deposit, post it to an asset account. When you receive it back, post the deposit and credit the asset account. This will track the...
It would be best to check with your tax preparer for this. The JE will be different depending on whether any depreciation had been taken or if there is still a ...