Hi! Through the gui, we can change the ERPNext Sales Order document status to “Closed” after we have submitted it.
There is a button to change the status to closed. We are in a need to do this operation through REST api on some specific Sales Orders. When we try f.e.: requests.put(frappeServerUrl/api/resource/Sales Order/SO, data=json.dumps({"status":"Closed"}), headers=requiredHeaders)
We get a response with status code 417 and a message stating UpdateAfterSubmitError Not allowed to change Status after submission from To Deliver and Bill to Closed even though we can do this from the web ui. What are we doing wrong here?
Hi!
Do you have an idea why the sales order is still not displayed as closed even when I do the remote function call that returns with 200 status code?