I have following code for my custom API, but why if there is an error after “doc.submit()” all the changes doesn’t rollback and it persist on my database?
Am I doing it wrong?
I’m facing no error in my code, but i’m doing an experiment that after my “closing_entry.submit()” and before “frappe.db.commit()” I raise an error.
Expected behaviour is all my closing entry should be rollback. But in fact, the data is still there so actually with or without frappe.db.commit(), my data is auto commited straight away.