How to add tax like sale order and purchase in new doctype?

Hi,

I added new doctype Delivery challan. In this doctype I added items as child table. I need to add tax for this items like sale order and purchase. How can I do this?