Naming series increase even if there is an exception while saving the invoice from the backend (#14938)
This commit is contained in:
parent
a76067eea1
commit
6863b03790
@ -507,5 +507,6 @@ def save_invoice(doc, name, name_list):
|
||||
name_list.append(name)
|
||||
except Exception:
|
||||
frappe.log_error(frappe.get_traceback())
|
||||
frappe.db.rollback()
|
||||
|
||||
return name_list
|
||||
|
Loading…
x
Reference in New Issue
Block a user