Merge pull request #34608 from ruthra-kumar/reconciliation_debit_credit_mismatch

chore: removing redundant validation
This commit is contained in:
ruthra kumar 2023-03-28 16:54:37 +05:30 committed by GitHub
commit 7c13533f30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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