Item wise tax not working on purchase sales

I have added item tax in the HSN Code and also added the same tax in the item, but when I create a purchase order, all taxes are being inserted. Can someone help me?