From 89fab780279ca1ac7e888584c15befb9c37f16e9 Mon Sep 17 00:00:00 2001 From: marination Date: Wed, 13 Apr 2022 18:44:50 +0530 Subject: [PATCH] fix: Remove "Values Out of Sync" validation from Journal Entry - Even if there is a difference there's not much a user can do - Checking it at the JV level is senseless. Blindly making users post another JV will lead to more error. - Users making JV are usually accountants who know what they are doing - The validation computes incorrect values for an account that contributes partially to warehouse's value. --- erpnext/accounts/doctype/journal_entry/journal_entry.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/erpnext/accounts/doctype/journal_entry/journal_entry.py b/erpnext/accounts/doctype/journal_entry/journal_entry.py index 920db5b19c..d28c3a8687 100644 --- a/erpnext/accounts/doctype/journal_entry/journal_entry.py +++ b/erpnext/accounts/doctype/journal_entry/journal_entry.py @@ -18,7 +18,6 @@ from erpnext.accounts.doctype.tax_withholding_category.tax_withholding_category ) from erpnext.accounts.party import get_party_account from erpnext.accounts.utils import ( - check_if_stock_and_account_balance_synced, get_account_currency, get_balance_on, get_stock_accounts, @@ -88,9 +87,6 @@ class JournalEntry(AccountsController): self.update_inter_company_jv() self.update_invoice_discounting() self.update_status_for_full_and_final_statement() - check_if_stock_and_account_balance_synced( - self.posting_date, self.company, self.doctype, self.name - ) def on_cancel(self): from erpnext.accounts.utils import unlink_ref_doc_from_payment_entries