Tax implications after transferring shares from one demat account to another

This is currently a bug in the system of secondary demat transfer. It should show the same price for buy and sell, or at most show as zero profit/loss. see this thread