Skip to content

Commit

Permalink
fix: removing redundant validation
Browse files Browse the repository at this point in the history
(cherry picked from commit d52f7e2)
  • Loading branch information
ruthra-kumar committed Mar 28, 2023
1 parent 477cb12 commit fd6db41
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions erpnext/accounts/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,12 +451,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(_(f"Validation Error for {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 fd6db41

Please sign in to comment.