exactly the title. I want to fetch customer’s purchase order from sales order when creating delivery note from sales order
The way i would do this is have a custom app or server script, that ties into the hook before_insert - The doc items will have a column called sales_order from that you can get the sales order doc and then the po number
is it solve? or still do you need help!
No need for custom logic, this capability is already in the system. If you added a PO number in the sales order, it carries over to all subsequent documents. You can find it under the “More Info” tab → Customer PO Details
Oh wow I didn’t pay attention to that ![]()
. And I saw a post, when creating another doc from another doc you can use the Name so that the data would transfer from the doc to the created doc. Thanks so much by the way was brooding this problem for quite long and just realized my dumbness🙃.
ERP systems are inherently complex and ERPNext is no different. It takes time to learn even the basics. I’ve been using the system for over a year by now and I’m still learning tons ![]()
