Merge pull request #22511 from deepeshgarg007/gl_entry_ignore_validation

fix: Do not ignore validate methods on GL entry submit
This commit is contained in:
rohitwaghchaure 2020-07-08 13:06:47 +05:30 committed by GitHub
commit 37d828eda6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -140,10 +140,8 @@ def make_entry(args, adv_adj, update_outstanding):
gle = frappe.new_doc("GL Entry")
gle.update(args)
gle.flags.ignore_permissions = 1
gle.validate()
gle.db_insert()
gle.insert()
gle.run_method("on_update_with_args", adv_adj, update_outstanding)
gle.flags.ignore_validate = True
gle.submit()
# check against budget