I am trying to create a new Sales Invoice doc via client side scripting, but I am struggling quite a bit. Most immediately, I’m having trouble setting either the posting_date or the due_date programmatically. My code is below:
Hi, did you ever manage to do this? I am trying to do a similar thing to create a Delivery Note from a submitted Sales Order but it only seems to pass values that are being used in the standard filter.
We never figured out to do it effectively with the route options, but we have had better luck with a different approach creating the document directly with frappe.db.insert:
Hi thank you. About half an hour after I had asked I actually found a script for copying between child tables but just as I was about to test it, my boss decided that he didn’t want automatic delivery notes.