Skip to content

Commit

Permalink
fix: removing redundant validation
Browse files Browse the repository at this point in the history
  • Loading branch information
ruthra-kumar committed Mar 28, 2023
1 parent f7780cd commit d52f7e2
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions erpnext/accounts/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,14 +467,6 @@ def reconcile_against_document(args): # nosemgrep
else:
update_reference_in_payment_entry(entry, doc, do_not_save=True)

if doc.doctype == "Journal Entry":
try:
doc.validate_total_debit_and_credit()
except Exception as validation_exception:
raise frappe.ValidationError(
_("Validation Error for {0}").format(doc.name)
) from validation_exception

doc.save(ignore_permissions=True)
# re-submit advance entry
doc = frappe.get_doc(entry.voucher_type, entry.voucher_no)
Expand Down

0 comments on commit d52f7e2

Please sign in to comment.