i`v created a new doctype and successfully fetched the entire sales order details except sales order item table . but now i need to fetch the entire table which includes a custom field for technical description
In that case: see the code I linked above. Since you’re making your document from sales order, I gave as an example the function that executes in the backend when you make delivery note from sales order.
Yes, you need to write custom code in your custom app which will get executed when you click the button to get items. If you’re not comfortable with python you can get this done as paid development.
@Mahmoud_Ghoneem, I think you can also pull the items via Javascript using a series of frappe.client.get snippets but you’re going to need the name variable of the Document whose items you’re trying to fetch.
Can you also share the code you used to fetch the entire table from Sales Order so that we can see your approach to solving this one? Thanks!
Please dont give up or withdraw it. Others will be working towards something similar. My being here is proof.
Here’s my script so far. Still trying to make it work. The fields are selectable in print preview but it isnt appearing at all. I suspect empty values.