From d3dde833f717e73daf4606b418e12974f3270274 Mon Sep 17 00:00:00 2001 From: Asmita Hase Date: Fri, 8 Aug 2025 12:58:06 +0530 Subject: [PATCH] fix: dont validate account type in for employee party type (cherry picked from commit e7a2ff1884ca74c3dddb80508c87be8149561904) --- erpnext/accounts/doctype/journal_entry/journal_entry.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/erpnext/accounts/doctype/journal_entry/journal_entry.py b/erpnext/accounts/doctype/journal_entry/journal_entry.py index 0b8cefa48d8..a54bae9fb96 100644 --- a/erpnext/accounts/doctype/journal_entry/journal_entry.py +++ b/erpnext/accounts/doctype/journal_entry/journal_entry.py @@ -552,7 +552,8 @@ class JournalEntry(AccountsController): elif ( d.party_type and frappe.db.get_value("Party Type", d.party_type, "account_type") != account_type - and (not self.flags.ignore_party_account_validation) + and d.party_type + != "Employee" # making an excpetion for employee since they can be both payable and receivable ): frappe.throw( _("Row {0}: Account {1} and Party Type {2} have different account types").format(