Merge pull request #34619 from frappe/mergify/bp/version-14-hotfix/pr-34608

chore: removing redundant validation (backport #34608)
This commit is contained in:
ruthra kumar
2023-03-28 17:21:11 +05:30
committed by GitHub

View File

@@ -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)