Automatically create an Delivery Challan basis a Sales Order.

Automatically create an Delivery Challan basis a Sales Order.

Hi,

I wanted to know if there is a possibility to automatically populate a Delivery Challan basis a Sales Order.

Is it possible to do this with custom functions? If yes, how?