diff --git a/erpnext/accounts/doctype/journal_entry/journal_entry.py b/erpnext/accounts/doctype/journal_entry/journal_entry.py index e6e34cba26c..f8f10435f6f 100644 --- a/erpnext/accounts/doctype/journal_entry/journal_entry.py +++ b/erpnext/accounts/doctype/journal_entry/journal_entry.py @@ -654,7 +654,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(