Not able to set item tax template on purchase invoice. I am not able to get that . Any help?

I have set tax template for an item. However while creating a purchase invoice , it does not pick the item taxes. The same item being used in the sales invoice is working fine.