Under section 54, any long-term capital gain arising to an individual or an HUF on sale of a residential property shall be exempt if the capital gains are invested in another residential property. The property sold can be self-occupied or rented.
When a long-term capital asset like a house property or long-term bonds are sold, the gains are usually very large and are taxed at 20%. Thus, the tax liability on this profit also turns out to be a substantial amount as a long-term capital gains ...
Loss other than loss from house property is not eligible to be considered for set off against tax liability on the income from Salary. Hence the information would be irrelevant to the employer.