I am in the process of creating a new print format for the for Purchase Receipt. However, in the print format, Purchase Order number and Purchase order date is required. When doing a purchase receipt, we usually perform " Get Items from Purchase Order " and select at least one or more purchase Orders.
So, anyone can suggest how to get the purchase order information in the print format for a particular Item.
You will have reference of purchase order in child table(Items) of your purchase receipt.
so in custom print format (use loop trough items table)
and use frappe.get_doc() function to fetch your purchase order.
I am trying to bring purchase order number to Purchase receipt print format. I have tried to call with “frappe.get_doc” method, but I guess I am doing it wrong.