diff --git a/erpnext/accounts/doctype/journal_entry/journal_entry.py b/erpnext/accounts/doctype/journal_entry/journal_entry.py index df67faf9242..647ab381723 100644 --- a/erpnext/accounts/doctype/journal_entry/journal_entry.py +++ b/erpnext/accounts/doctype/journal_entry/journal_entry.py @@ -149,13 +149,6 @@ class JournalEntry(AccountsController): if not self.title: self.title = self.get_title() - def validate_for_repost(self): - self.validate_party() - self.validate_multi_currency() - if not frappe.flags.is_reverse_depr_entry: - self.validate_against_jv() - self.validate_stock_accounts() - def submit(self): if len(self.accounts) > 100: msgprint(_("The task has been enqueued as a background job."), alert=True) @@ -181,9 +174,9 @@ class JournalEntry(AccountsController): def on_update_after_submit(self): if hasattr(self, "repost_required"): - child_tables = {"accounts": ("account", "account_type", "bank_account")} - self.needs_repost = self.check_if_fields_updated([], child_tables) - self.validate_for_repost() + self.needs_repost = self.check_if_fields_updated( + fields_to_check=[], child_tables={"accounts": []} + ) self.db_set("repost_required", self.needs_repost) def on_cancel(self): diff --git a/erpnext/accounts/doctype/journal_entry_account/journal_entry_account.json b/erpnext/accounts/doctype/journal_entry_account/journal_entry_account.json index 6aee48630a5..a61f8bf62f4 100644 --- a/erpnext/accounts/doctype/journal_entry_account/journal_entry_account.json +++ b/erpnext/accounts/doctype/journal_entry_account/journal_entry_account.json @@ -39,7 +39,6 @@ ], "fields": [ { - "allow_on_submit": 1, "bold": 1, "columns": 2, "fieldname": "account", @@ -56,7 +55,6 @@ "width": "250px" }, { - "allow_on_submit": 1, "fieldname": "account_type", "fieldtype": "Data", "hidden": 1, @@ -253,7 +251,6 @@ "fieldtype": "Column Break" }, { - "allow_on_submit": 1, "fieldname": "bank_account", "fieldtype": "Link", "label": "Bank Account", @@ -270,7 +267,7 @@ "idx": 1, "istable": 1, "links": [], - "modified": "2023-12-03 23:21:22.205409", + "modified": "2024-02-05 01:10:50.224840", "modified_by": "Administrator", "module": "Accounts", "name": "Journal Entry Account",