I want to create sales invoice document automatically on the basis on other doctype

Hi @Mohtashim_Shoaib,

You can create this setup on both the server and client sides.

Here’s how it works: When a Sales Order is submitted, a client script is triggered to automatically submit the corresponding Delivery Note. You’ll need to write a script to make this happen, adjusting it according to your specific scenario and mapping the fields accordingly.

Also, check out this link for more details and an example of a server script:

I hope this helps.

Thank You!